Rename the special 'disabled' category to '.'

This commit is contained in:
Joel Elkins 2022-07-31 00:21:17 -05:00
parent c3044b02ae
commit 158e4353f4
No known key found for this signature in database
GPG Key ID: 133589DC38921AE2
2 changed files with 3 additions and 3 deletions

View File

@ -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.

View File

@ -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")
}