Skip to content

Commit

Permalink
update help for ddosx domain acl ip create command
Browse files Browse the repository at this point in the history
  • Loading branch information
0x4c6565 committed Feb 7, 2020
1 parent ffaf19c commit 822a853
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
7 changes: 3 additions & 4 deletions cmd/ddosx_domain_acl_ip.go
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ func ddosxDomainACLIPRuleCreateCmd() *cobra.Command {
Use: "create <domain: name>",
Short: "Creates ACL IP rules",
Long: "This command creates domain ACL IP rules",
Example: "ukfast ddosx domain acl ip create",
Example: "ukfast ddosx domain acl ip create example.com --ip 1.2.3.4 --mode Deny --uri blog",
Args: func(cmd *cobra.Command, args []string) error {
if len(args) < 1 {
return errors.New("Missing domain")
Expand All @@ -122,9 +122,8 @@ func ddosxDomainACLIPRuleCreateCmd() *cobra.Command {

cmd.Flags().String("ip", "", "IP address for IP ACL rule")
cmd.MarkFlagRequired("ip")
cmd.Flags().String("uri", "", "URI for IP ACL rule")
cmd.MarkFlagRequired("uri")
cmd.Flags().String("mode", "", "Mode for IP ACL rule")
cmd.Flags().String("uri", "", "Relative URI for IP ACL rule, e.g. path/to/file.jpg")
cmd.Flags().String("mode", "", "Mode for IP ACL rule. Valid values: "+ddosx.ACLIPModeEnum.String())
cmd.MarkFlagRequired("mode")

return cmd
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ require (
github.com/spf13/cobra v0.0.5
github.com/spf13/viper v1.3.2
github.com/stretchr/testify v1.3.0
github.com/ukfast/sdk-go v1.3.2
github.com/ukfast/sdk-go v1.3.3
gopkg.in/go-playground/assert.v1 v1.2.1
)

Expand Down
2 changes: 2 additions & 0 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,8 @@ github.com/ukfast/sdk-go v1.3.1 h1:Kbwa1wBVn0s4PxnND4pJOGAzU3QSL+AYj2RXqbOxHWQ=
github.com/ukfast/sdk-go v1.3.1/go.mod h1:VHQi+BbNxVKPu131MHaMFe0UrMoFWbe4LjUqSCt64yg=
github.com/ukfast/sdk-go v1.3.2 h1:yEh2C+50dlmnYORmexccPhheblBoAGjHPebDVtESDgE=
github.com/ukfast/sdk-go v1.3.2/go.mod h1:VHQi+BbNxVKPu131MHaMFe0UrMoFWbe4LjUqSCt64yg=
github.com/ukfast/sdk-go v1.3.3 h1:6yqx4+pyK1cktQSg+q8BYB5QhKJZSLb4nyXwhp7jk7M=
github.com/ukfast/sdk-go v1.3.3/go.mod h1:VHQi+BbNxVKPu131MHaMFe0UrMoFWbe4LjUqSCt64yg=
github.com/ulikunitz/xz v0.5.5 h1:pFrO0lVpTBXLpYw+pnLj6TbvHuyjXMfjGeCwSqCVwok=
github.com/ulikunitz/xz v0.5.5/go.mod h1:2bypXElzHzzJZwzH67Y6wb67pO62Rzfn7BSiF4ABRW8=
github.com/xordataexchange/crypt v0.0.3-0.20170626215501-b2862e3d0a77/go.mod h1:aYKd//L2LvnjZzWKhF00oedf4jCCReLcmhLdhm1A27Q=
Expand Down

0 comments on commit 822a853

Please sign in to comment.