cmd

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

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

Go to latest
Published: Apr 15, 2024 License: AGPL-3.0 Imports: 54 Imported by: 1

Documentation

Overview

Package cmd is where the CLI commands and options are defined.

Index

Constants

View Source
const DefaultStorageDir = "storage"

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

Variables

View Source
var RootCmd = &cobra.Command{
	Use:   "cozy-stack <command>",
	Short: "cozy-stack is the main command",
	Long: `Cozy is a platform that brings all your web services in the same private space.
With it, your web apps and your devices can share data easily, providing you
with a new experience. You can install Cozy on your own hardware where no one
profiles you.`,
	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