cline

A fast and lightweight CLI package for Go without external dependencies.

APACHE-2.0 License

Stars
3
Committers
1
cline - v0.1.0 Latest Release

Published by joseluisq over 3 years ago

Refactorings

  • af2f02e2b45fc37837ba546ec754f64dbb06a61f Help flag display improvements. Which redefine spaces and output style.

Breaking changes

  • 8c2065bdffdcddd12cd15a595e499594a547e330 Improve flag values, types and helpers. Every flag value type now returns an error during conversion instead of just panic.

Features

  • b21365e78d9e16746d4a38abce50874858a39da1 Build commit support in --version flag.

Codebase

  • 1a366ecb4b71078195f1b215aacb06dcd7b614d9 Github Actions as new CI.

Testing

  • ddb3bc53c4677b40245b05f3210c676bb6ba8ca5 Test cases for flag values.
cline - v0.1.0-beta.9

Published by joseluisq almost 4 years ago

Refactorings

  • c31151dd9795a12254d9bb51e56ca37355b42ad4 Flag types and values API improved.

Fixes

  • 8c0761e08f5b305a32e8000c2ddeb33061436ec9 Wrong bool flag values passed to subommands.

Features

  • 51d02e99b7dd69fcd2c5bc56282abf982d73371a Get provided flags function.
  • 22b81cbd5a485b9ae56c7e3af2c247db149d0ddd Get provided flags with long names function.
  • 2d3c8a1312a5318c0bc96ffcc2b0909c9d6ab09a Get provided flags with short names (alias) function.

Documentation

  • 9fb6a2419d6764544f5f37de7155be80ec764e2e Update code example with new API.
cline - v0.1.0-beta.8

Published by joseluisq almost 4 years ago

Refactorings

  • 710aa27ac3481f066fa18682d992bc9b7f9112de Version flag for global only.
cline - v0.1.0-beta.7

Published by joseluisq almost 4 years ago

Features

  • 8a4eb1d646d9b73ccc9f277f1e49e76c6d4f63bc Print default flag values on --help option.
  • b4601e79d696ecdd7cfa14c4daa011aeeffa26a3 Print environment variables for flags on --help option.

Documentation

  • 3231316044df0fa71084a4a4b07dfc92933d0d27 Update features section details.
cline - v0.1.0-beta.6

Published by joseluisq almost 4 years ago

Features

  • 966d25e FlagProvided struct for flags passed only from stdin. Available on AppContext.Flags and CmdContext.Flags.

Refactorings

  • 81abd8f Don't print commands information when they are not provided.
  • 5ccfd18 Print long and short flags chars properly on --help option.
  • 966d25e FlagValueMap renamed to FlagMapping.
cline - v0.1.0-beta.5

Published by joseluisq almost 4 years ago

Refactorings

  • 19a506b4e79add1c27e9a4850e84c8bc99f65d37 Dereference tail args slice on app and command contexts.
cline - v0.1.0-beta.4

Published by joseluisq almost 4 years ago

Refactorings

  • 76a9e449e1c6ff49e999c8bf628345d36f8d731e Handle short and long bool flag values.
cline - v0.1.0-beta.3

Published by joseluisq almost 4 years ago

cline - v0.1.0-beta.2

Published by joseluisq almost 4 years ago

cline - v0.1.0-beta.1

Published by joseluisq almost 4 years ago