Skip to content

Commit ca14ea0

Browse files
#907 removed the CDN commands, added deprecated notice
1 parent c0e4bfc commit ca14ea0

20 files changed

+4
-1554
lines changed

plugin/commands/cdn/cdn.go

Lines changed: 4 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -11,25 +11,18 @@ import (
1111
func SetupCobraCommands(sl *metadata.SoftlayerCommand) *cobra.Command {
1212
cobraCmd := &cobra.Command{
1313
Use: "cdn",
14-
Short: T("Classic infrastructure CDN commands"),
14+
Short: T("Classic infrastructure CDN commands") + " " + T("Deprecated"),
1515
RunE: nil,
16+
Deprecated: "https://cloud.ibm.com/docs/CDN?topic=CDN-cdn-deprecation",
1617
}
17-
cobraCmd.AddCommand(NewListCommand(sl).Command)
18-
cobraCmd.AddCommand(NewDeleteCommand(sl).Command)
19-
cobraCmd.AddCommand(NewOriginRemoveCommand(sl).Command)
20-
cobraCmd.AddCommand(NewDetailCommand(sl).Command)
21-
cobraCmd.AddCommand(NewEditCommand(sl).Command)
22-
cobraCmd.AddCommand(NewOriginListCommand(sl).Command)
23-
cobraCmd.AddCommand(NewCreateCommand(sl).Command)
24-
cobraCmd.AddCommand(NewPurgeCommand(sl).Command)
25-
cobraCmd.AddCommand(NewOriginAddCommand(sl).Command)
18+
2619
return cobraCmd
2720
}
2821

2922
func CdnNamespace() plugin.Namespace {
3023
return plugin.Namespace{
3124
ParentName: "sl",
3225
Name: "cdn",
33-
Description: T("Classic infrastructure CDN commands"),
26+
Description: T("Classic infrastructure CDN commands" + " " + T("Deprecated")),
3427
}
3528
}

plugin/commands/cdn/cdn_test.go

Lines changed: 0 additions & 72 deletions
This file was deleted.

plugin/commands/cdn/create.go

Lines changed: 0 additions & 112 deletions
This file was deleted.

plugin/commands/cdn/create_test.go

Lines changed: 0 additions & 94 deletions
This file was deleted.

plugin/commands/cdn/delete.go

Lines changed: 0 additions & 47 deletions
This file was deleted.

0 commit comments

Comments
 (0)