File: init.mli

package info (click to toggle)
ocaml-obuild 0.2.2-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,456 kB
  • sloc: ml: 14,491; sh: 211; ansic: 34; makefile: 11
file content (19 lines) | stat: -rw-r--r-- 717 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
(** Project initialization wizard *)

exception ProjectAlreadyExists
(** Raised when a project file already exists in the current directory *)

exception CannotRunNotInteractive
(** Raised when trying to run the wizard in a non-interactive terminal *)

exception AbortedByUser
(** Raised when the user aborts the wizard (e.g., EOF on input) *)

val run : unit -> Project.t
(** [run ()] runs the interactive project initialization wizard.

    Prompts the user for project details and returns a configured Project.t.

    @raise ProjectAlreadyExists if a project file already exists
    @raise CannotRunNotInteractive if not running in an interactive terminal
    @raise AbortedByUser if the user aborts the wizard *)