Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

remove deprecated cfg and fn commands #4930

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 0 additions & 9 deletions cmd/config/configcobra/cfg.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,18 +14,9 @@ func GetCfg(name string) *cobra.Command {
Short: "Commands for reading and writing configuration",
}

cmd.AddCommand(commands.AnnotateCommand(name))
cmd.AddCommand(commands.CatCommand(name))
cmd.AddCommand(commands.CountCommand(name))
cmd.AddCommand(commands.CreateSetterCommand(name))
cmd.AddCommand(commands.CreateSubstitutionCommand(name))
cmd.AddCommand(commands.FmtCommand(name))
cmd.AddCommand(commands.GrepCommand(name))
cmd.AddCommand(commands.InitCommand(name))
cmd.AddCommand(commands.ListSettersCommand(name))
cmd.AddCommand(commands.MergeCommand(name))
cmd.AddCommand(commands.Merge3Command(name))
cmd.AddCommand(commands.SetCommand(name))
cmd.AddCommand(commands.TreeCommand(name))

return cmd
Expand Down
27 changes: 7 additions & 20 deletions cmd/config/configcobra/cmds.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,27 +14,14 @@ import (
)

// Export commands publicly for composition
//
//nolint:gochecknoglobals
var (
Annotate = commands.AnnotateCommand
Cat = commands.CatCommand
Count = commands.CountCommand
CreateSetter = commands.CreateSetterCommand
CreateSubstitution = commands.CreateSubstitutionCommand
DeleteSetter = commands.DeleteSetterCommand
DeleteSubstitution = commands.DeleteSubstitutionCommand
Fmt = commands.FmtCommand
Grep = commands.GrepCommand
Init = commands.InitCommand
ListSetters = commands.ListSettersCommand
Merge = commands.MergeCommand
Merge3 = commands.Merge3Command
RunFn = commands.RunCommand
Set = commands.SetCommand
Sink = commands.SinkCommand
Source = commands.SourceCommand
Tree = commands.TreeCommand
Wrap = commands.WrapCommand
XArgs = commands.XArgsCommand
Cat = commands.CatCommand
Count = commands.CountCommand
Grep = commands.GrepCommand
RunFn = commands.RunCommand
Tree = commands.TreeCommand

StackOnError = &runner.StackOnError
ExitOnError = &runner.ExitOnError
Expand Down
5 changes: 0 additions & 5 deletions cmd/config/configcobra/fn.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,5 @@ func GetFn(name string) *cobra.Command {
}

cmd.AddCommand(commands.RunCommand(name))
cmd.AddCommand(commands.SinkCommand(name))
cmd.AddCommand(commands.SourceCommand(name))
cmd.AddCommand(commands.WrapCommand())
cmd.AddCommand(commands.XArgsCommand())

return cmd
}
147 changes: 0 additions & 147 deletions cmd/config/internal/commands/annotate.go

This file was deleted.

Loading