homepage: https://github.com/erickg/structured-cli#readme
changelog-type: ''
hash: 9b35a5a48f8f6d698a094cc2e0e7e3cec9f0769482135174f47c0c1d0996ada5
test-bench-deps: {}
maintainer: erick@codemonkeylabs.de
synopsis: Application library for building interactive console CLIs
changelog: ''
basic-deps:
  haskeline: -any
  split: -any
  base: ! '>=4.7 && <5'
  data-default: -any
  structured-cli: -any
  mtl: -any
  transformers: -any
all-versions:
- '0.9.0.2'
author: Erick Gonzalez
latest: '0.9.0.2'
description-type: markdown
description: ! "# structured-cli\n#### Haskell library for building structured CLI
  applications\n\nThis module provides the tools to build a complete \"structured\"
  CLI application, similar\nto those found in systems like Cisco IOS or console configuration
  utilities etc. It aims\nto be easy for implementors to use.\n\n* How to use this
  module:\n\nThe following code illustrates a simple but complete\nCLI app:\n\n```haskell\nimport
  Control.Monad.IO.Class (liftIO)\nimport System.Console.StructuredCLI\n\nroot ::
  Commands ()\nroot = do\n  world >+ do\n    hello\n    bye\n    exit $ Just \"return
  to previous level\"\n\nworld :: Commands ()\nworld = command \"world\" (Just \"enter
  into world\") Nothing\n\nhello :: Commands ()\nhello = command \"hello\" (Just \"prints
  a greeting\") $ Just $ do\n          liftIO . putStrLn $ \"Hello world!\"\n          return
  0\n\nbye :: Commands ()\nbye = command \"bye\" (Just \"say goodbye\") $ Just $ do\n
  \       liftIO . putStrLn $ \"Sayonara!\"\n        return 0\n\nmain :: IO ()\nmain
  = runCLI \"Hello CLI\" Nothing root\n```\n\nresulting example session:\n\n```\nHello
  CLI > ?\n- world: enter into world\nHello CLI > world\nHello CLI world >\nbye    exit
  \  hello\nHello CLI world > hello\nHello world!\nHello CLI world > exit\n```\n\nA
  good way to get you started is to grab the example code available under [example/Main.hs](https://github.com/erickg/structured-cli/blob/master/example/Main.hs)
  and modify it to suit your needs.\n"
license-name: BSD3

Update from Hackage at 2017-08-23T16:59:25Z
Update from Hackage at 2017-08-23T16:59:25Z
