cmd

package
v0.0.0-...-ff244ab Latest Latest
Warning

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

Go to latest
Published: Mar 10, 2021 License: AGPL-3.0 Imports: 26 Imported by: 0

Documentation

Index

Constants

View Source
const DefaultStorageDir = "storage"

DefaultStorageDir is the default directory name in which data is stored relatively to the cozy-dispers binary.

Variables

View Source
var ErrUsage = errors.New("Bad usage of command")

ErrUsage is returned by the cmd.Usage() method

View Source
var RootCmd = &cobra.Command{
	Use:   "cozy-dispers <command>",
	Short: "cozy-dispers is the main command",
	Long: `Cozy-DISPERS is a privacy-by-designed platform that make Cozy Stacks
	participate to queries.`,
	PersistentPreRunE: func(cmd *cobra.Command, args []string) error {
		return config.Setup(cfgFile)
	},
	RunE: func(cmd *cobra.Command, args []string) error {

		return cmd.Usage()
	},

	SilenceUsage: true,

	SilenceErrors: true,
}

RootCmd represents the base command when called without any subcommands

Functions

This section is empty.

Types

This section is empty.

Directories

Path Synopsis
Package browser provides utilities for interacting with users' browsers.
Package browser provides utilities for interacting with users' browsers.

Jump to

Keyboard shortcuts

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