We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 774e36e commit b5e09b2Copy full SHA for b5e09b2
commands/commands.go
@@ -113,11 +113,13 @@ func GetCommands() *core.Commands {
113
mongodb.GetCommands(),
114
audit_trail.GetCommands(),
115
interlink.GetCommands(),
116
- file.GetCommands(),
117
)
118
119
if beta {
120
- commands.Merge(dedibox.GetCommands())
+ commands.MergeAll(
+ dedibox.GetCommands(),
121
+ file.GetCommands(),
122
+ )
123
}
124
125
return commands
core/command.go
@@ -291,6 +291,12 @@ func (c *Commands) Merge(cmds *Commands) {
291
292
293
294
+func (c *Commands) MergeAll(cmds ...*Commands) {
295
+ for _, command := range cmds {
296
+ c.Merge(command)
297
+ }
298
+}
299
+
300
func (c *Commands) GetAll() []*Command {
301
return c.commands
302
0 commit comments