Main driver for interactive prompt code.
Modulecabal-install-3.12.1.0Haskell2010
Distribution.Client.Init.Interactive.Command
Implementation of the 'cabal init' command, which creates an initial .cabal file for a project.
- 21 values
- Packagecabal-install-3.12.1.0
- Exports21
- LanguageHaskell2010
- LicenceBSD-3-Clause
- SourceCommand.hs
Commands
1 declarationTarget generation
Extract flags relevant to a package description and interactively generate a PkgDescription object for creation. If the user specifies the generation of a simple package, then a simple target with defaults is generated.
Extract flags relevant to a library target and interactively generate a LibTarget object for creation. If the user specifies the generation of a simple package, then a simple target with defaults is generated.
Extract flags relevant to a executable target and interactively generate a ExeTarget object for creation. If the user specifies the generation of a simple package, then a simple target with defaults is generated.
Extract flags relevant to a test target and interactively generate a TestTarget object for creation. If the user specifies the generation of a simple package, then a simple target with defaults is generated.
Note: this workflow is only enabled if the user answers affirmatively when prompted, or if the user passes in the flag to enable test suites at command line.
Prompts
Ask for the application root directory.
Ask for the source (library) root directory.