@@ -5,49 +5,49 @@ import (
55 "github.com/drycc/workflow-cli/cmd"
66)
77
8- // Whitelist displays all relevant commands for `drycc whitelist `.
9- func Whitelist (argv []string , cmdr cmd.Commander ) error {
8+ // Allowlist displays all relevant commands for `drycc allowlist `.
9+ func Allowlist (argv []string , cmdr cmd.Commander ) error {
1010 usage := `
11- Valid commands for whitelist :
11+ Valid commands for allowlist :
1212
13- whitelist :add adds addresses to the application's whitelist
14- whitelist :list list addresses in the application's whitelist
15- whitelist :remove remove addresses from the application's whitelist
13+ allowlist :add adds addresses to the application's allowlist
14+ allowlist :list list addresses in the application's allowlist
15+ allowlist :remove remove addresses from the application's allowlist
1616
1717Use 'drycc help [command]' to learn more.
1818`
1919
2020 switch argv [0 ] {
21- case "whitelist :add" :
22- return whitelistAdd (argv , cmdr )
23- case "whitelist :list" :
24- return whitelistList (argv , cmdr )
25- case "whitelist :remove" :
26- return whitelistRemove (argv , cmdr )
21+ case "allowlist :add" :
22+ return allowlistAdd (argv , cmdr )
23+ case "allowlist :list" :
24+ return allowlistList (argv , cmdr )
25+ case "allowlist :remove" :
26+ return allowlistRemove (argv , cmdr )
2727 default :
2828 if printHelp (argv , usage ) {
2929 return nil
3030 }
3131
32- if argv [0 ] == "whitelist " {
33- argv [0 ] = "whitelist :list"
34- return whitelistList (argv , cmdr )
32+ if argv [0 ] == "allowlist " {
33+ argv [0 ] = "allowlist :list"
34+ return allowlistList (argv , cmdr )
3535 }
3636
3737 PrintUsage (cmdr )
3838 return nil
3939 }
4040}
4141
42- func whitelistAdd (argv []string , cmdr cmd.Commander ) error {
42+ func allowlistAdd (argv []string , cmdr cmd.Commander ) error {
4343 usage := `
44- Adds addresses to an application whitelist .
44+ Adds addresses to an application allowlist .
4545
46- Usage: drycc whitelist :add <addresses> [options]
46+ Usage: drycc allowlist :add <addresses> [options]
4747
4848Arguments:
4949 <addresses>
50- comma-delimited list of addresses(using IP or CIDR notation) to be whitelisted for the application, such as '1.2.3.4' or '1.2.3.4,0.0.0.0/0'.
50+ comma-delimited list of addresses(using IP or CIDR notation) to be allowlisted for the application, such as '1.2.3.4' or '1.2.3.4,0.0.0.0/0'.
5151
5252Options:
5353 -a --app=<app>
@@ -63,14 +63,14 @@ Options:
6363 app := safeGetValue (args , "--app" )
6464 addresses := safeGetValue (args , "<addresses>" )
6565
66- return cmdr .WhitelistAdd (app , addresses )
66+ return cmdr .AllowlistAdd (app , addresses )
6767}
6868
69- func whitelistList (argv []string , cmdr cmd.Commander ) error {
69+ func allowlistList (argv []string , cmdr cmd.Commander ) error {
7070 usage := `
71- Lists whitelisted addresses for an application.
71+ Lists allowlisted addresses for an application.
7272
73- Usage: drycc whitelist :list [options]
73+ Usage: drycc allowlist :list [options]
7474
7575Options:
7676 -a --app=<app>
@@ -85,18 +85,18 @@ Options:
8585
8686 app := safeGetValue (args , "--app" )
8787
88- return cmdr .WhitelistList (app )
88+ return cmdr .AllowlistList (app )
8989}
9090
91- func whitelistRemove (argv []string , cmdr cmd.Commander ) error {
91+ func allowlistRemove (argv []string , cmdr cmd.Commander ) error {
9292 usage := `
93- Removes addresses from an application whitelist .
93+ Removes addresses from an application allowlist .
9494
95- Usage: drycc whitelist :remove <addresses> [options]
95+ Usage: drycc allowlist :remove <addresses> [options]
9696
9797Arguments:
9898 <addresses>
99- comma-delimited list of addresses(using IP or CIDR notation) to be whitelisted for the application, such as '1.2.3.4' or "1.2.3.4,0.0.0.0/0".
99+ comma-delimited list of addresses(using IP or CIDR notation) to be allowlisted for the application, such as '1.2.3.4' or "1.2.3.4,0.0.0.0/0".
100100
101101Options:
102102 -a --app=<app>
@@ -112,5 +112,5 @@ Options:
112112 app := safeGetValue (args , "--app" )
113113 addresses := safeGetValue (args , "<addresses>" )
114114
115- return cmdr .WhitelistRemove (app , addresses )
115+ return cmdr .AllowlistRemove (app , addresses )
116116}
0 commit comments