Skip to content

Commit

Permalink
fix examples
Browse files Browse the repository at this point in the history
  • Loading branch information
0x4c6565 committed Mar 18, 2020
1 parent 1c5c971 commit a75b909
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion cmd/ddosx_domain_acl_geoip.go
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ func ddosxDomainACLGeoIPRuleCreateCmd() *cobra.Command {
Use: "create <domain: name>",
Short: "Creates ACL GeoIP rules",
Long: "This command creates domain ACL GeoIP rules",
Example: "ukfast ddosx domain acl geoip create",
Example: "ukfast ddosx domain acl geoip create example.com --code gb",
Args: func(cmd *cobra.Command, args []string) error {
if len(args) < 1 {
return errors.New("Missing domain")
Expand Down
2 changes: 1 addition & 1 deletion cmd/ddosx_domain_cdn_rule.go
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ func ddosxDomainCDNRuleCreateCmd() *cobra.Command {
Use: "create <domain: name>",
Short: "Creates domain CDN rules",
Long: "This command creates domain CDN rules",
Example: "ukfast ddosx domain cdn rule create --uri example.html --cache-control custom --mime-type image/* --type global",
Example: "ukfast ddosx domain cdn rule create example.com --uri example.html --cache-control custom --mime-type image/* --type global",
Args: func(cmd *cobra.Command, args []string) error {
if len(args) < 1 {
return errors.New("Missing domain")
Expand Down
2 changes: 1 addition & 1 deletion cmd/ddosx_domain_hsts_rule.go
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ func ddosxDomainHSTSRuleCreateCmd() *cobra.Command {
Use: "create <domain: name>",
Short: "Creates domain HSTS rules",
Long: "This command creates domain HSTS rules",
Example: "ukfast ddosx domain hsts rule create --uri example.html --cache-control custom --mime-type image/* --type global",
Example: "ukfast ddosx domain hsts rule create example.com --uri example.html --cache-control custom --mime-type image/* --type global",
Args: func(cmd *cobra.Command, args []string) error {
if len(args) < 1 {
return errors.New("Missing domain")
Expand Down
2 changes: 1 addition & 1 deletion cmd/ddosx_domain_waf_rule.go
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ func ddosxDomainWAFRuleCreateCmd() *cobra.Command {
Use: "create <domain: name>",
Short: "Creates domain WAF rules",
Long: "This command creates domain WAF rules",
Example: "ukfast ddosx domain waf rule create --uri example.html --ip 1.2.3.4",
Example: "ukfast ddosx domain waf rule create example.com --uri example.html --ip 1.2.3.4",
Args: func(cmd *cobra.Command, args []string) error {
if len(args) < 1 {
return errors.New("Missing domain")
Expand Down
1 change: 1 addition & 0 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,7 @@ 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/ukfast/sdk-go v1.3.4 h1:3L+wBtJ4Gk0hie9BzWSeFhQ8cyCRJzwCHDVh88LSbRA=
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 a75b909

Please sign in to comment.