{"modulePath":"github.com/hookdeck/hookdeck-cli","version":"v1.9.1","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package cmd\n\nCopyright © 2020 NAME HERE \\\u003cEMAIL ADDRESS\u003e\n\nLicensed under the Apache License, Version 2.0 (the \"License\"); you may not use this file except in compliance with the License. You may obtain a copy of the License at\n\n\thttp://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.\n\nCopyright © 2020 NAME HERE \\\u003cEMAIL ADDRESS\u003e\n\nLicensed under the Apache License, Version 2.0 (the \"License\"); you may not use this file except in compliance with the License. You may obtain a copy of the License at\n\n\thttp://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.\n\n## Constants\n\n```go\nconst (\n\tResourceSource         = \"source\"\n\tResourceConnection     = \"connection\"\n\tResourceDestination    = \"destination\"\n\tResourceTransformation = \"transformation\"\n\tResourceEvent          = \"event\"\n\tResourceRequest        = \"request\"\n\tResourceAttempt        = \"attempt\"\n)\n```\nResource names for shared help text (singular form for \"a source\", \"a connection\").\n\n```go\nconst BetaFeedbackSuffix = `\n\n[BETA] This feature is in beta. Please share bugs and feedback via:\nhttps://github.com/hookdeck/hookdeck-cli/issues`\n```\nBeta help text for gateway/connection commands. Centralised so the feedback URL and wording stay consistent.\n\n```go\nconst SuccessCheck = \"✔\"\n```\nSuccessCheck is the checkmark character used in success messages across all commands.\n\n## Variables\n\n```go\nvar Config config.Config\n```\n\n## Functions\n\n```go\nfunc Execute()\n```\nExecute adds all child commands to the root command and sets flags appropriately. This is called by main.main(). It only needs to happen once to the rootCmd.\n\n```go\nfunc LongBeta(long string) string\n```\nLongBeta appends the beta feedback paragraph to a long description for use in Cobra Long.\n\n```go\nfunc LongDeleteIntro(resource string) string\n```\nLongDeleteIntro returns the first sentence for \"delete\" commands.\n\n```go\nfunc LongDisableIntro(resource string) string\n```\nLongDisableIntro returns the first sentence for \"disable\" commands.\n\n```go\nfunc LongEnableIntro(resource string) string\n```\nLongEnableIntro returns the first sentence for \"enable\" commands.\n\n```go\nfunc LongGetIntro(resource string) string\n```\nLongGetIntro returns the first paragraph for \"get\" commands: \"Get detailed information about a specific {resource}.\\\\n\\\\nYou can specify either a {resource} ID or name.\" Callers append their own Examples block.\n\n```go\nfunc LongUpdateIntro(resource string) string\n```\nLongUpdateIntro returns the first sentence for \"update\" commands.\n\n```go\nfunc LongUpsertIntro(resource string) string\n```\nLongUpsertIntro returns the first sentence for \"upsert\" commands (create or update by name).\n\n```go\nfunc RootCmd() *cobra.Command\n```\nRootCmd returns the root command for use by tools (e.g. generate-reference).\n\n```go\nfunc ShortBeta(short string) string\n```\nShortBeta appends \\[BETA] to a short description for use in Cobra Short.\n\n```go\nfunc ShortCreate(resource string) string\n```\n\n```go\nfunc ShortDelete(resource string) string\n```\n\n```go\nfunc ShortDisable(resource string) string\n```\n\n```go\nfunc ShortEnable(resource string) string\n```\n\n```go\nfunc ShortGet(resource string) string\n```\nShort help (one line) for common commands. Use when the only difference is the resource name.\n\n```go\nfunc ShortList(resource string) string\n```\n\n```go\nfunc ShortUpdate(resource string) string\n```\n\n```go\nfunc ShortUpsert(resource string) string\n```\n\n","path":"github.com/hookdeck/hookdeck-cli/pkg/cmd","name":"cmd","synopsis":"","isRedistributable":true}
