get

package
v0.12.3 Latest Latest
Warning

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

Go to latest
Published: Dec 23, 2020 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Cmd = &cobra.Command{
	Use:   "get <collection_id>",
	Short: "Get collection info",
	Args:  cobra.ExactArgs(1),
	Run: func(cmd *cobra.Command, args []string) {
		projectConf := new(cli.Config)
		if conf.Host == "" {
			projectConf = cli.LoadConfig()
		}
		collectionID := flow.HexToID(args[0])
		collection := cli.GetCollectionByID(projectConf.HostWithOverride(conf.Host), collectionID)
		printCollection(collection)
	},
}

Functions

This section is empty.

Types

type Config

type Config struct {
	Host string `flag:"host" info:"Flow Access API host address"`
}

Jump to

Keyboard shortcuts

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