delete

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Nov 2, 2021 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DeleteTopicCmd = &cobra.Command{
	Use:   "delete",
	Short: "Delete the topics satisfying the passed criteria if any",
	Run: func(command *cobra.Command, args []string) {
		cobraUtil := base.NewCobraUtil(command)
		lastWrite := int64(cobraUtil.GetIntArg("last-write"))
		var baseCmd *base.Cmd
		if lastWrite == 0 {
			baseCmd = base.Init(cobraUtil)
		} else {
			baseCmd = base.Init(cobraUtil, base.WithSSH())
		}
		d := deleteTopic{
			Lister:         baseCmd.GetTopic(),
			Deleter:        baseCmd.GetTopic(),
			lastWrite:      lastWrite,
			dataDir:        cobraUtil.GetStringArg("data-dir"),
			topicWhitelist: cobraUtil.GetStringArg("topic-whitelist"),
			topicBlacklist: cobraUtil.GetStringArg("topic-blacklist"),
			sshPort:        cobraUtil.GetStringArg("ssh-port"),
			sshKeyFilePath: cobraUtil.GetStringArg("ssh-key-file-path"),
			userInput:      &ui.UserInput{},
		}
		d.deleteTopic()
	},
}

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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