-
Notifications
You must be signed in to change notification settings - Fork 58
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
- Loading branch information
1 parent
c630717
commit 2532b34
Showing
31 changed files
with
1,966 additions
and
233 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
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,30 @@ | ||
module Commands.Internal.Doc where | ||
|
||
import Juvix.Prelude hiding (Doc) | ||
import Options.Applicative | ||
|
||
data DocOptions = DocOptions | ||
{ _docOutputDir :: FilePath, | ||
_docOpen :: Bool | ||
} | ||
|
||
makeLenses ''DocOptions | ||
|
||
parseDoc :: Parser DocOptions | ||
parseDoc = do | ||
_docOutputDir <- | ||
option | ||
str | ||
( long "output-dir" | ||
<> metavar "DIR" | ||
<> value "doc" | ||
<> showDefault | ||
<> help "html output directory" | ||
<> action "directory" | ||
) | ||
_docOpen <- | ||
switch | ||
( long "open" | ||
<> help "open the documentation after generating it" | ||
) | ||
pure DocOptions {..} |
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
Oops, something went wrong.