cmd

package
v0.0.0-...-3a65d20 Latest Latest
Warning

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

Go to latest
Published: Sep 25, 2023 License: MIT Imports: 25 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Execute

func Execute()

func Print

func Print(arg interface{})

func Printf

func Printf(format string, args ...interface{})

Types

type Prompt

type Prompt struct {
	ServiceName     string
	TaskName        string
	DestinationName string
	SnapshotName    string
	// contains filtered or unexported fields
}

func NewPrompt

func NewPrompt(cmd *cobra.Command) *Prompt

func (*Prompt) AskIsConfirm

func (p *Prompt) AskIsConfirm() bool

func (*Prompt) ScanDestinationName

func (p *Prompt) ScanDestinationName() error

func (*Prompt) ScanServiceName

func (p *Prompt) ScanServiceName() error

func (*Prompt) ScanSnapshotName

func (p *Prompt) ScanSnapshotName() error

func (*Prompt) ScanTaskName

func (p *Prompt) ScanTaskName() error

type Snapshot

type Snapshot struct {
	ID      string `json:"id"`
	ShortID string `json:"shortId"`
	Date    string `json:"date"`
	Tags    []string
}

Jump to

Keyboard shortcuts

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