Categorygithub.com/jyrobin/jcli
modulepackage
0.0.0-20220602081754-b7d0f2727f47
Repository: https://github.com/jyrobin/jcli.git
Documentation: pkg.go.dev

# README

jcli

A simple concurrency-friendly CLI package.

Previous jcli version employs go-flags under the hood. Each execution rebuilds a command tree with a provided context to make it more thread-safe. But the design is still unnatural.

Current implementation derives from a simpler library clir, by adding support for context.Context and factoring out some side-effecting code, to allow concurrent execution on the same command tree.

# Functions

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
GetStringOrViper gets the value from the context using the key; if fails, tries to get the viper instance from the context then uses viperKey to get the value.
No description provided by the author
No description provided by the author
No description provided by the author
NewCli - Creates a new Cli application object.
NewCommand creates a new Command.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
StringFlags is a convenient function that calls StringFlag with multiple names and empty string as the default value.
No description provided by the author
No description provided by the author
No description provided by the author

# Constants

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Variables

No description provided by the author

# Structs

No description provided by the author
Command represents a command that may be run by the user.
No description provided by the author

# Type aliases

Action represents a function that gets calls when the command is called by the user.