You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
composeCommand.PersistentFlags().String("project-directory", "", "Specify an alternate working directory")
38
-
composeCommand.PersistentFlags().StringP("project-name", "p", "", "Specify an alternate project name")
39
-
composeCommand.PersistentFlags().String("env-file", "", "Specify an alternate environment file")
40
-
composeCommand.PersistentFlags().String("ipfs-address", "", "multiaddr of IPFS API (default uses $IPFS_PATH env variable if defined or local directory ~/.ipfs)")
41
-
composeCommand.PersistentFlags().StringArray("profile", []string{}, "Specify a profile to enable")
Copy file name to clipboardExpand all lines: cmd/nerdctl/compose/compose_down.go
+4-4Lines changed: 4 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -26,17 +26,17 @@ import (
26
26
)
27
27
28
28
funcnewComposeDownCommand() *cobra.Command {
29
-
varcomposeDownCommand=&cobra.Command{
29
+
varcmd=&cobra.Command{
30
30
Use: "down",
31
31
Short: "Remove containers and associated resources",
32
32
Args: cobra.NoArgs,
33
33
RunE: composeDownAction,
34
34
SilenceUsage: true,
35
35
SilenceErrors: true,
36
36
}
37
-
composeDownCommand.Flags().BoolP("volumes", "v", false, "Remove named volumes declared in the `volumes` section of the Compose file and anonymous volumes attached to containers.")
38
-
composeDownCommand.Flags().Bool("remove-orphans", false, "Remove containers for services not defined in the Compose file.")
39
-
returncomposeDownCommand
37
+
cmd.Flags().BoolP("volumes", "v", false, "Remove named volumes declared in the `volumes` section of the Compose file and anonymous volumes attached to containers.")
38
+
cmd.Flags().Bool("remove-orphans", false, "Remove containers for services not defined in the Compose file.")
0 commit comments