mirror of
https://gitea.elkins.co/Networking/ccl.git
synced 2025-02-04 03:52:51 -06:00
Rename the special 'disabled' category to '.'
This commit is contained in:
parent
c3044b02ae
commit
158e4353f4
@ -46,7 +46,7 @@ recognized or available to podman itself.
|
||||
|
||||
Two Categories are treated specially:
|
||||
|
||||
- `disabled` indicates that containers identified here are to be excluded
|
||||
- `.` (*disabled*) indicates that containers identified here are to be excluded
|
||||
normally, unless specifically requested by name. This exclusion can be disabled
|
||||
(i.e. disabled containers included in the action) by specifying the `-a` option.
|
||||
|
||||
|
@ -46,7 +46,7 @@ execute the necessary podman commands.`,
|
||||
ValidArgsFunction: cobra.NoFileCompletions,
|
||||
PersistentPreRun: func(cmd *cobra.Command, args []string) {
|
||||
if !incDisabled {
|
||||
contMask = []string{"disabled"}
|
||||
contMask = []string{"."}
|
||||
}
|
||||
|
||||
requireConn := []string{"create", "pull", "recreate", "restart", "rm", "start", "stop", "update"}
|
||||
@ -108,6 +108,6 @@ func init() {
|
||||
rootCmd.PersistentFlags().StringVarP(&config.ConfigFile, "config", "c", config.CONFIG_FILE_DEFAULT, "pathname of config file")
|
||||
rootCmd.PersistentFlags().BoolVarP(&verbose, "verbose", "v", false, "show additional info from command execution")
|
||||
rootCmd.PersistentFlags().BoolVarP(&fake, "no-action", "n", false, "do not actually execute commands")
|
||||
rootCmd.PersistentFlags().BoolVarP(&incDisabled, "include-disabled", "a", false, "include category=disabled containers in actions")
|
||||
rootCmd.PersistentFlags().BoolVarP(&incDisabled, "include-disabled", "a", false, "include category=. containers in actions")
|
||||
rootCmd.PersistentFlags().StringVarP(&socket, "socket", "k", "unix:///run/podman/podman.sock", "socket address to which to connect")
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user