0.2.0-dev #2
@ -69,10 +69,6 @@ func (c Config) getRootCommand() (*cobra.Command, error) {
|
|||||||
return cmd, nil
|
return cmd, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
// func (c Config) ParseVersion() (semver.Version, error) {
|
|
||||||
// return semver.Parse(c.Version.Full)
|
|
||||||
// }
|
|
||||||
|
|
||||||
func (c Config) RegisterCommand(cmd Commander, f func(*cobra.Command)) {
|
func (c Config) RegisterCommand(cmd Commander, f func(*cobra.Command)) {
|
||||||
appCmd.AddCommand(cmd.Initialize(f))
|
appCmd.AddCommand(cmd.Initialize(f))
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user