-
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
237deb6
commit 2aa54d0
Showing
6 changed files
with
22 additions
and
25 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,15 @@ | ||
// Package ff provides a flags-first approach to runtime configuration. | ||
// | ||
// The central function is [Parse], which mirrors [flag.FlagSet.Parse], | ||
// populating a flag set from commandline arguments, environment variables, | ||
// and/or a config file. [Option] values control parsing behavior. | ||
// The core function is [Parse], which mirrors the Parse method of a standard | ||
// flag.FlagSet, populating a flag set from commandline arguments, environment | ||
// variables, and/or a config file. [Option] values control parsing behavior. | ||
// | ||
// [NewFlags] provides a standard flag set, inspired by getopts(3). You can also | ||
// parse a [flag.FlagSet] directly, or provide your own implementation of the | ||
// [Flags] interface altogether. | ||
// [CoreFlags] is provided as a default flag set implementation, inspired by | ||
// getopts(3). A standard flag.FlagSet can be adapted to a core flag set via | ||
// [NewStdFlags]. Callers are also free to use their own implementation of the | ||
// [Flags] interface. | ||
// | ||
// [Command] is also provided as a tool for building CLI applications, like | ||
// docker or kubectl, in a simple and declarative style. It's intended to be | ||
// easier to understand and maintain than common alternatives. | ||
// [Command] is provided as a tool for building CLI applications, like docker or | ||
// kubectl, in a simple and declarative style. It's intended to be easier to | ||
// understand and maintain than 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