cmd

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2023 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (

	// ProjectName Name of the GCP Project
	ProjectName string
	// TopicName Name of the Topic to be used during execution
	TopicName string
)
View Source
var RootCmd = &cobra.Command{
	Use:   "gcloudps",
	Short: "Google Cloud Pub/Sub Cli",
	Long: `Google Cloud Pub/Sub CLI:
	Allows allows publishing and subscribing of message form a GCP topic`,
}

RootCmd represents the base command when called without any subcommands

View Source
var Version string

Version the version of the app

Functions

func CheckRequiredFlags

func CheckRequiredFlags(flags map[string]string) error

CheckRequiredFlags Checks if required flags are there. Will return an error for any invalid flag

func Execute

func Execute()

Execute adds all child commands to the root command sets flags appropriately. This is called by main.main(). It only needs to happen once to the rootCmd.

Types

This section is empty.

Jump to

Keyboard shortcuts

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