-
Notifications
You must be signed in to change notification settings - Fork 58
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
80cf439
commit fe2014a
Showing
24 changed files
with
619 additions
and
746 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,15 @@ | ||
// Package ff provides a flags-first approach to runtime configuration. | ||
// | ||
// [Parse] populates a flag set with runtime configuration from environment | ||
// variables and config files. | ||
// [Parse] is the central function. It mirrors [flag.FlagSet.Parse] and | ||
// populates a set of [Flags] from commandline arguments, environment variables, | ||
// and/or a config file. [Option] values control parse behavior. | ||
// | ||
// [Command] can be used to build hierarchical command-line applications in a | ||
// declarative style. | ||
// [CoreFlags] is a standard, getopts(3)-inspired implementation of the [Flags] | ||
// interface. Consumers can create a CoreFlags via [NewFlags], or adapt an | ||
// existing [flag.FlagSet] to a CoreFlags via [NewStdFlags], or provide their | ||
// own implementation altogether. | ||
// | ||
// [Flags] is the core interface of the package. Consumers may use the | ||
// getopts(3)-inspired [CoreFlags] implementation, or provide their own. | ||
// [Command] is provided as a way to build hierarchical CLI tools, like docker | ||
// or kubectl, in a simple and declarative style. It's intended to be easier to | ||
// understand and maintain than more common alternatives. | ||
package ff |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.