Joe Bellus
1b747133e6
General imrovements
...
Added app! macro that can extract package name and version.
Opts can be parsed for the application root prior to launching handling
functions.
Added further integration with the console create
Improved display of description_lists, these now wrap the description
text.
Long and short opts are now optional and one or both can be used.
2021-11-13 21:32:30 -05:00
Joe Bellus
e38edc6a68
Merge branch 'short-flags' into 'v0.1.1'
...
Combined shortflags
See merge request arkham/arkham!2
2021-11-13 06:54:02 +00:00
Joe Bellus
943664cbc8
Combined shortflags
2021-11-13 06:54:01 +00:00
Joe Bellus
4e0ba0efc3
Merge branch '1-root-level-description' into 'v0.1.1'
...
Added App::long_desc(self) which sets the root level description
See merge request arkham/arkham!1
2021-11-13 06:48:39 +00:00
Joe Bellus
3e9fee013d
linting
2021-11-13 01:36:27 -05:00
Joe Bellus
35f5e8c82f
Added App::long_desc(self) which sets the root level description
...
The root app description is included in the help content when the
bare command is ran.
2021-06-21 19:26:47 -04:00
Joe Bellus
7432a6636c
Bumped Version
2021-06-21 09:56:08 -04:00
Joe Bellus
2573ef293a
Updated license for Cargo.toml
2021-06-20 21:51:16 -04:00
Joe Bellus
902414f31b
Merge branch 'publish' into 'master'
...
Publish Preperation
See merge request arkham/arkham!5
2021-06-21 01:43:01 +00:00
Joe Bellus
bb78209345
Preparing for publishing crate on crates.io.
...
* Added license file
* Added fields to Cargo.toml
2021-06-21 01:43:00 +00:00
Joe Bellus
ff8b1e9298
Merge branch 'config-refactor' into 'master'
...
Config File Handling
See merge request arkham/arkham!4
2021-06-21 01:24:33 +00:00
Joe Bellus
7c64993a07
Config files can be loaded and used in conjunction with command line opts. Config file loading is behind features for JSON and TOML loading. Config files can be used to automatically provide defined CLI opts as well as arbitrary data, all of which can be retrieved from the get_value functions in the Context given to handler functions.
2021-06-21 01:24:32 +00:00
Joe Bellus
7f757c76f9
Merge branch 'env-config' into 'master'
...
Environment based options/flags
See merge request arkham/arkham!3
2021-06-19 20:03:13 +00:00
Joe Bellus
81e557a037
Environment based options/flags
...
Environment variables can be checked for options/flags. The name of the
option is used to query if an environment variable exists for the given
option.
This can optionally be prefixed.
2021-06-19 15:59:46 -04:00
Joe Bellus
5a725c2aef
Merge branch 'automatic-help' into 'master'
...
Automatic help/usage
See merge request arkham/arkham!2
2021-06-19 19:07:04 +00:00
Joe Bellus
6409e249e3
Automatic help output
...
Added help generation for root and subcommands either using
`app help [command]` or `app --help [command]`
This help text displays all opts and their descriptions, available
subcommands and any description for the current command.
2021-06-19 19:07:04 +00:00
Joe Bellus
25badbf51b
Merge branch 'ci-cd' into 'master'
...
Add ci config
See merge request arkham/arkham!1
2021-06-19 07:32:30 +00:00
Joe Bellus
5eb8cde125
Add ci config
2021-06-19 07:27:49 +00:00
Joe Bellus
c9ae7be6d0
Core app foundation/opt parsing
2021-06-19 03:20:29 -04:00