Skip to content

Releases: peterbourgon/ff

v3.4.0

20 Jul 14:33
e267c41
Compare
Choose a tag to compare

What's Changed

Full Changelog: v3.3.2...v3.4.0

v3.3.2

11 Jun 20:47
c76f02c
Compare
Choose a tag to compare

This release adds the WithFilesystem option, allowing users to specify a filesystem other than the default host FS for e.g. config files. Thanks to @piotrkowalczuk and #103 for the inspiration.

v3.3.1

09 May 09:04
61fa353
Compare
Choose a tag to compare

@abhinav sent in #106 which just improves the DefaultUsageFunc a bit, thanks bud!

v3.3.0

05 Aug 18:46
7a9748f
Compare
Choose a tag to compare

Changes!

What's Changed

New Contributors

  • @m90 made their first contribution in #95
  • @decke made their first contribution in #94

Full Changelog: v3.1.2...v3.3.0

v3.1.2

28 Sep 11:29
Compare
Choose a tag to compare

The rehoming to major version 0 caused problems I was not able to quickly resolve. See #86. This release restores everything to major version 3 until I can resolve those problems.

v0.1.0

27 Sep 22:51
Compare
Choose a tag to compare

v0.1.0 is a rehoming of package ff on major version 0. All future development will occur on major version 0. There are no changes in functionality from the latest MINOR.PATCH release of major version 3.

v3.1.0

07 Jul 14:53
17a8312
Compare
Choose a tag to compare

ffyaml now treats

key: 

as

-key=""

instead of an error.

v3.0.0

09 Mar 20:56
b472967
Compare
Choose a tag to compare

Version 3.0.0 of packages ff and ffcli contain a few breaking changes.

First, in package ff, the parsing priority has changed. Previously, flags had first priority, then config files, and finally env vars. Now, flags have first priority, then env vars, and finally config files. That is, env vars now have higher Parse priority than config files. This reflects I think a more correct interpretation of their respective semantics: flags are explicit user intent at runtime, env vars are associated with a user session, and config files are static for an entire host.

Second, in package ff, environment variables are no longer split on commas by default. The WithEnvVarIgnoreCommas option has been removed, and replaced with an inverse WithEnvVarSplit option so you can opt-in to splitting env vars on whatever delimiter you like. See #55.

Finally, in package ffcli, if a command is selected as the terminal command, and it doesn't have an Exec function defined, then Parse, Run, and ParseAndRun will return NoExecError instead of nil. This change makes it easier to declare and detect no-op "container" subcommands, which only exist to hold other commands. See #57.

Compliments? Complaints? Dial 1-800-NEW-ISSUE.

v2.0.0

08 Jan 06:39
c04f3bb
Compare
Choose a tag to compare

Several small fixes to package ff, and a more functional package ffcli. Includes a breaking change to ffcli, hence the major version bump: command.Run is renamed to ParseAndRun, and individual Parse and Run methods are added.

v1.7.0

31 Dec 19:00
Compare
Choose a tag to compare

A few new features. WithIgnoreUndefined is a new option that allows parsing to continue if a flag is specified but not defined in the flagset (thanks @yjp20). WithAllowMissingConfigFile allows parsing to continue if a specified config file doesn't exist (thanks @Dragomir-Ivanov). And package fftoml is refactored to include a WithTableDelimiter option to map TOML tables to flag names (thanks @GeorgeMac).