MCPcopy Index your code
hub / github.com/docker/docker-agent / newAliasRemoveCmd

Function newAliasRemoveCmd

cmd/root/alias.go:121–129  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

119}
120
121func newAliasRemoveCmd() *cobra.Command {
122 return &cobra.Command{
123 Use: "remove <alias-name>",
124 Aliases: []string{"rm"},
125 Short: "Remove a registered alias",
126 Args: cobra.ExactArgs(1),
127 RunE: runAliasRemoveCommand,
128 }
129}
130
131func runAliasAddCommand(cmd *cobra.Command, args []string, flags *aliasAddFlags) (commandErr error) {
132 telemetry.TrackCommand(cmd.Context(), "alias", append([]string{"add"}, args...))

Callers 1

newAliasCmdFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected