DEV Community

Jonas Brømsø
Jonas Brømsø

Posted on

Release 0.10.0 of stevedore - minor feature enhancement

I have just finalized and released version 0.10.0 of the stevedore command line tool, to assist in handling Docker ignore files.

The most recent feature addition is the detection and use of a global configuration file.

The file should be named: config.json and should reside in the directory $HOME/.config/stevedore/. The file can contain presets for most of the common command line arguments, so these will not have to be entered upon every invocation, when jumping between projects.

Example:

{
    "$schema": "stevedore-config.schema.json",
    "color": true,
    "debug": false,
    "excluded": false,
    "fullpath": true,
    "ignorefile": ".stevedoreignore",
    "included": false,
    "invertcolor": false,
    "verbose": false
}
Enter fullscreen mode Exit fullscreen mode

The configuration can be overwritten by the local configuration file introduced in release 0.9.0 and of course the command line flags, used upon each invocation.

I have decided to follow the: "XDG Base Directory Specification". So if you want your global configuration file to reside else where, you can point to this using the environment variable: $XDG_CONFIG_HOME.

Do note stevedore does not support: XDG_CONFIG_DIRS at this point in time.

As stated I am not sure I will keep the configuration file in JSON format, since it is much more suitable for data transport, so I am still considering YAML.

Feedback and suggestions most welcome. Releases should be available for download for most platforms.

Or you can install using Go:

go install github.com/jonasbn/stevedore@v0.10.0
Enter fullscreen mode Exit fullscreen mode

Oldest comments (0)