feat(cli): add/set/remove worker tags (#2266)

* adds CLI commands for add/set/removing worker tags, and respective tests
* adds StringSliceMapVar Flag to convert a string from the CLI to a map[string][]string value
This commit is contained in:
Haotian authored and GitHub committed 2022-08-26 13:37:26 -07:00
1 parent 547e7a5970
commit 17ddc301a8
12 files changed
+825 -4

No files matched your search

+7 -1
View File
@@ -810,7 +810,13 @@ var inputStructs = []*structInfo{
PostType: "worker_generated_auth_token",
},
},
pluralResourceName: "workers",
pluralResourceName: "workers",
sliceSubtypes: map[string]sliceSubtypeInfo{
"WorkerTags": {
SliceType: "map[string][]string",
VarName: "apiTags",
},
},
createResponseTypes: true,
recursiveListing: true,
versionEnabled: true,