cmd

package
v1.9.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 27, 2026 License: Apache-2.0 Imports: 24 Imported by: 0

Documentation

Overview

Copyright © 2020 NAME HERE <EMAIL ADDRESS>

Licensed 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

http://www.apache.org/licenses/LICENSE-2.0

Unless 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.

Copyright © 2020 NAME HERE <EMAIL ADDRESS>

Licensed 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

http://www.apache.org/licenses/LICENSE-2.0

Unless 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.

Index

Constants

View Source
const (
	ResourceSource         = "source"
	ResourceConnection     = "connection"
	ResourceDestination    = "destination"
	ResourceTransformation = "transformation"
	ResourceEvent          = "event"
	ResourceRequest        = "request"
	ResourceAttempt        = "attempt"
)

Resource names for shared help text (singular form for "a source", "a connection").

View Source
const BetaFeedbackSuffix = `

[BETA] This feature is in beta. Please share bugs and feedback via:
https://github.com/hookdeck/hookdeck-cli/issues`

Beta help text for gateway/connection commands. Centralised so the feedback URL and wording stay consistent.

View Source
const SuccessCheck = "✔"

SuccessCheck is the checkmark character used in success messages across all commands.

Variables

Functions

func Execute

func Execute()

Execute 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.

func LongBeta added in v1.8.0

func LongBeta(long string) string

LongBeta appends the beta feedback paragraph to a long description for use in Cobra Long.

func LongDeleteIntro added in v1.8.0

func LongDeleteIntro(resource string) string

LongDeleteIntro returns the first sentence for "delete" commands.

func LongDisableIntro added in v1.8.0

func LongDisableIntro(resource string) string

LongDisableIntro returns the first sentence for "disable" commands.

func LongEnableIntro added in v1.8.0

func LongEnableIntro(resource string) string

LongEnableIntro returns the first sentence for "enable" commands.

func LongGetIntro added in v1.8.0

func LongGetIntro(resource string) string

LongGetIntro 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.

func LongUpdateIntro added in v1.8.0

func LongUpdateIntro(resource string) string

LongUpdateIntro returns the first sentence for "update" commands.

func LongUpsertIntro added in v1.8.0

func LongUpsertIntro(resource string) string

LongUpsertIntro returns the first sentence for "upsert" commands (create or update by name).

func RootCmd added in v1.8.0

func RootCmd() *cobra.Command

RootCmd returns the root command for use by tools (e.g. generate-reference).

func ShortBeta added in v1.8.0

func ShortBeta(short string) string

ShortBeta appends [BETA] to a short description for use in Cobra Short.

func ShortCreate added in v1.8.0

func ShortCreate(resource string) string

func ShortDelete added in v1.8.0

func ShortDelete(resource string) string

func ShortDisable added in v1.8.0

func ShortDisable(resource string) string

func ShortEnable added in v1.8.0

func ShortEnable(resource string) string

func ShortGet added in v1.8.0

func ShortGet(resource string) string

Short help (one line) for common commands. Use when the only difference is the resource name.

func ShortList added in v1.8.0

func ShortList(resource string) string

func ShortUpdate added in v1.8.0

func ShortUpdate(resource string) string

func ShortUpsert added in v1.8.0

func ShortUpsert(resource string) string

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL