Skip to content

Commit

Permalink
remove deprecated cfg and fn commands (kubernetes-sigs#4930)
Browse files Browse the repository at this point in the history
* remove deprecated cfg and fn commands

* fix lint error

* run gofmt
  • Loading branch information
natasha41575 authored and kishorerj committed Jan 8, 2023
1 parent 04e51ad commit 761ea31
Show file tree
Hide file tree
Showing 37 changed files with 7 additions and 8,441 deletions.
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

0 comments on commit 761ea31

Please sign in to comment.