cmd

package
v1.6.2 Latest Latest
Warning

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

Go to latest
Published: Aug 21, 2019 License: AGPL-3.0 Imports: 33 Imported by: 0

Documentation

Overview

Package cmd implements all commands for Cells Control client.

Index

Constants

This section is empty.

Variables

View Source
var (
	READ  = &idm.ACLAction{Name: "read", Value: "1"}
	WRITE = &idm.ACLAction{Name: "write", Value: "1"}
	DENY  = &idm.ACLAction{Name: "deny", Value: "1"}
)
View Source
var RootCmd = &cobra.Command{
	Use:   "cells-ctl",
	Short: "Pydio Cells Control",
	Long: `
Pydio Cells Control allows you to interact with the micro services directly with a simple CLI. 
Most actions shall better be manually performed using the web frontend or scripted using the Cells Client.
`,

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

		t1 = time.Now()

		handleRegistry()

		serviceName = common.SERVICE_GRPC_NAMESPACE_ + common.SERVICE_TREE
		if len(source) > 0 {
			serviceName = common.SERVICE_GRPC_NAMESPACE_ + common.SERVICE_DATA_INDEX_ + source
		}
	},
	PersistentPostRun: func(cmd *cobra.Command, args []string) {
		cmd.Printf("[Time taken : %s]\n", time.Since(t1))
	},
}

RootCmd represents the base command when called without any subcommands.

Functions

func Execute

func Execute()

Execute adds all child commands to the root command and sets flags appropriately. This is called by main.main(). It only needs to happen once to the rootCmd.

Types

This section is empty.

Jump to

Keyboard shortcuts

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