Safe Haskell | None |
---|---|
Language | Haskell2010 |
Main module for using neuron as a library, instead of as a CLI tool.
Synopsis
- data App = App {}
- data NewCommand = NewCommand {}
- commandParser :: Parser App
- run :: Action () -> IO ()
- runWith :: Action () -> App -> IO ()
- generateSite :: (Route ZettelStore ZettelGraph () -> (ZettelStore, ZettelGraph) -> Action ()) -> [Path Rel File] -> Action (ZettelStore, ZettelGraph)
- newZettelFile :: Path b Dir -> NewCommand -> IO ()
CLI
data NewCommand Source #
Instances
Eq NewCommand Source # | |
Defined in Neuron.Zettelkasten (==) :: NewCommand -> NewCommand -> Bool # (/=) :: NewCommand -> NewCommand -> Bool # | |
Show NewCommand Source # | |
Defined in Neuron.Zettelkasten showsPrec :: Int -> NewCommand -> ShowS # show :: NewCommand -> String # showList :: [NewCommand] -> ShowS # |
commandParser :: Parser App Source #
optparse-applicative parser for neuron CLI
Rib site generation
generateSite :: (Route ZettelStore ZettelGraph () -> (ZettelStore, ZettelGraph) -> Action ()) -> [Path Rel File] -> Action (ZettelStore, ZettelGraph) Source #
Generate the Zettelkasten site
Etc
newZettelFile :: Path b Dir -> NewCommand -> IO () Source #
Create a new zettel file and open it in editor if requested
As well as print the path to the created file.