config

package
v0.0.0-...-e4f132a Latest Latest
Warning

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

Go to latest
Published: Aug 8, 2016 License: LGPL-3.0 Imports: 6 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Command = cli.Command{
	Name:        "configure",
	Aliases:     []string{"cfg"},
	Usage:       "Options for configurating thingiverse.io",
	Description: "Provides tools to display the current configuration and init an empty configuration file",
	Subcommands: []cli.Command{
		InitCmd,
		ShowCommand,
	},
}
View Source
var InitCmd = cli.Command{
	Name:  "init",
	Usage: fmt.Sprintf(`Initializes a default %s at the current directory.`, config.CFG_FILE_NAME),

	Description: fmt.Sprintf(`Initializes a default %s at the current directory.

Specify a path or use subcommands to init a %s at different places`, config.CFG_FILE_NAME, config.CFG_FILE_NAME),
	Action: runInitCfgFile,
	Subcommands: []cli.Command{
		InitGlobalCmd,
	},
}
View Source
var InitGlobalCmd = cli.Command{
	Name:  "global",
	Usage: fmt.Sprintf(`Initializes a default %s at the global directory.`, config.CFG_FILE_NAME),

	Description: fmt.Sprintf(`Initializes a default %s at %s.`, config.CFG_FILE_NAME, config.CfgFileGlobal()),
	Action:      runInitCfgFileGlobal,
}
View Source
var ShowCommand = cli.Command{
	Name:        "show",
	Usage:       "Show the current configuration",
	Description: "Shows the current configuration of the thingiverse.io network on this machine",
	Action:      runShow,
}

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