-
Notifications
You must be signed in to change notification settings - Fork 57
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add non-interactive version of juvix init
- Loading branch information
1 parent
511e99f
commit de3f9ef
Showing
5 changed files
with
69 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
module Commands.Init.Options where | ||
|
||
import CommonOptions | ||
|
||
newtype InitOptions = InitOptions | ||
{_initOptionsNonInteractive :: Bool} | ||
deriving stock (Data) | ||
|
||
makeLenses ''InitOptions | ||
|
||
parseInitOptions :: Parser InitOptions | ||
parseInitOptions = do | ||
_initOptionsNonInteractive <- | ||
switch | ||
( long "non-interactive" | ||
<> short 'n' | ||
<> help "Run non-interactively. Generates a default Package.juvix" | ||
) | ||
pure InitOptions {..} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters