database

package
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: Mar 31, 2020 License: BSD-3-Clause Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var CreateCmd = &cobra.Command{

	Use: "create <name> [input]",

	Short: "Create a Studios database",

	Long: createLong,

	Run: func(cmd *cobra.Command, args []string) {

		if 0 >= len(args) {
			fmt.Println("missing required argument: 'Name'")
			cmd.Usage()
			os.Exit(1)
		}

		var name string

		if 0 < len(args) {

			name = args[0]

		}

		if 1 >= len(args) {
			fmt.Println("missing required argument: 'Input'")
			cmd.Usage()
			os.Exit(1)
		}

		var input string

		if 1 < len(args) {

			input = args[1]

		}

		fmt.Println("hof studios database create", name, input)

	},
}
View Source
var DeleteCmd = &cobra.Command{

	Use: "delete <name or id>",

	Short: "Delete a Studios database.",

	Long: deleteLong,

	Run: func(cmd *cobra.Command, args []string) {

		if 0 >= len(args) {
			fmt.Println("missing required argument: 'Ident'")
			cmd.Usage()
			os.Exit(1)
		}

		var ident string

		if 0 < len(args) {

			ident = args[0]

		}

		fmt.Println("hof studios database delete", ident)

	},
}
View Source
var GetCmd = &cobra.Command{

	Use: "get <name or id>",

	Short: "Get a Studios database",

	Long: getLong,

	Run: func(cmd *cobra.Command, args []string) {

		if 0 >= len(args) {
			fmt.Println("missing required argument: 'Ident'")
			cmd.Usage()
			os.Exit(1)
		}

		var ident string

		if 0 < len(args) {

			ident = args[0]

		}

		fmt.Println("hof studios database get", ident)

	},
}
View Source
var ListCmd = &cobra.Command{

	Use: "list",

	Short: "List your databases",

	Long: listLong,

	Run: func(cmd *cobra.Command, args []string) {

		fmt.Println("hof studios database list")

	},
}
View Source
var RestoreCmd = &cobra.Command{

	Use: "restore <name or id> <backup-name>",

	Short: "Restore a Studios database.",

	Long: restoreLong,

	Run: func(cmd *cobra.Command, args []string) {

		if 0 >= len(args) {
			fmt.Println("missing required argument: 'Ident'")
			cmd.Usage()
			os.Exit(1)
		}

		var ident string

		if 0 < len(args) {

			ident = args[0]

		}

		fmt.Println("hof studios database restore", ident)

	},
}
View Source
var SaveCmd = &cobra.Command{

	Use: "save <name or id> <backup-name>",

	Short: "Save a Studios database under a named reference.",

	Long: saveLong,

	Run: func(cmd *cobra.Command, args []string) {

		if 0 >= len(args) {
			fmt.Println("missing required argument: 'Ident'")
			cmd.Usage()
			os.Exit(1)
		}

		var ident string

		if 0 < len(args) {

			ident = args[0]

		}

		fmt.Println("hof studios database save", ident)

	},
}
View Source
var StatusCmd = &cobra.Command{

	Use: "status <name or id>",

	Short: "Get the status of a Studios database.",

	Long: statusLong,

	Run: func(cmd *cobra.Command, args []string) {

		if 0 >= len(args) {
			fmt.Println("missing required argument: 'Ident'")
			cmd.Usage()
			os.Exit(1)
		}

		var ident string

		if 0 < len(args) {

			ident = args[0]

		}

		fmt.Println("hof studios database status", ident)

	},
}
View Source
var UpdateCmd = &cobra.Command{

	Use: "update <name> <input>",

	Short: "Update a Studios database",

	Long: updateLong,

	Run: func(cmd *cobra.Command, args []string) {

		if 0 >= len(args) {
			fmt.Println("missing required argument: 'Name'")
			cmd.Usage()
			os.Exit(1)
		}

		var name string

		if 0 < len(args) {

			name = args[0]

		}

		if 1 >= len(args) {
			fmt.Println("missing required argument: 'Input'")
			cmd.Usage()
			os.Exit(1)
		}

		var input string

		if 1 < len(args) {

			input = args[1]

		}

		fmt.Println("hof studios database update", name, input)

	},
}

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