Skip to content

Commit 2acf593

Browse files
authored
feat(strcase): add dhcp-id bash name (#1414)
1 parent e4cef73 commit 2acf593

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

strcase/bash_arg.go

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,10 @@ package strcase
33
import "strings"
44

55
var customBashNames = map[string]string{
6-
"aclid": "acl-id",
7-
"ipid": "ip-id",
8-
"lbid": "lb-id",
6+
"aclid": "acl-id",
7+
"ipid": "ip-id",
8+
"lbid": "lb-id",
9+
"dhcpid": "dhcp-id",
910
}
1011

1112
// ToBashArg returns the Bash public name of the given string.

strcase/strcase_test.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ func TestAllStrCases(t *testing.T) {
4949
{"ip-id", "IPID", "ipID", "ip-id"},
5050
{"lb-id", "LBID", "lbID", "lb-id"},
5151
{"acl-id", "ACLID", "aclID", "acl-id"},
52+
{"dhcp-id", "DHCPID", "dhcpID", "dhcp-id"},
5253
}
5354
for _, test := range tests {
5455
got := ToPublicGoName(test.name)

0 commit comments

Comments
 (0)