build: Add an option for the migration path for coreos/toolbox users
Commit 6c86cabbe5da6e542b changed the command line interface to behave
a lot similar to that of github.com/coreos/toolbox, which makes things
easier for those switching over from it.
However, it makes things confusing for the vast majority of users who
have never used coreos/toolbox. The Toolbox CLI aims to be friendly to
new users by being self-documenting and offering a smooth onboarding
experience. It's jarring to new users when 'toolbox', without any
commands specified, suggests that it needs to perform a big download.
It's difficult to document two different sets of CLIs, and if the
manuals don't mention the second behaviour, then it just leaves the
users even more confused.
Hence, it will be good to keep the migration path for coreos/toolbox
behind a build-time option, so that only those OS distributors who
truly need it may enable it without impacting others. Fortunately,
coreos/toolbox doesn't have any manuals, which means that there's no
need to conditionalize the documentation.
This commit merely adds the build-time option. Subsequent commits will
use this to actually conditionalize the code.
https://github.com/containers/toolbox/pull/951
2021-11-13 12:55:10 +00:00
|
|
|
option(
|
|
|
|
'migration_path_for_coreos_toolbox',
|
|
|
|
description: 'Offer a migration path to users of github.com/coreos/toolbox',
|
|
|
|
type: 'boolean',
|
|
|
|
value: false
|
|
|
|
)
|
|
|
|
|
2019-04-24 17:36:36 +00:00
|
|
|
option(
|
|
|
|
'profile_dir',
|
|
|
|
description: 'Directory for profile.d files to be read by the shell on start-up',
|
|
|
|
type: 'string',
|
|
|
|
value: '/usr/share/profile.d'
|
|
|
|
)
|
2021-07-05 01:46:07 +00:00
|
|
|
|
|
|
|
option(
|
|
|
|
'tmpfiles_dir',
|
|
|
|
description: 'Directory for system-wide tmpfiles.d(5) files',
|
|
|
|
type: 'string',
|
|
|
|
)
|
2021-11-21 14:16:07 +00:00
|
|
|
|
|
|
|
option(
|
|
|
|
'install_completions',
|
|
|
|
description: 'Install bash, zsh and fish command completions',
|
|
|
|
type: 'boolean',
|
|
|
|
value: true,
|
|
|
|
)
|