cli

package
v0.0.0-...-d95dd9a Latest Latest
Warning

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

Go to latest
Published: Jun 22, 2022 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

Copyrighted by the coniks-go authors.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Execute

func Execute(rootCmd *cobra.Command)

Execute adds all subcommands (i.e. "init" and "run") to the RootCmd and sets their flags appropriately.

func NewRootCommand

func NewRootCommand(use, short, long string) *cobra.Command

NewRootCommand constructs a new RootCommand for the given exectuable's use, short and long descriptions.

Types

type ServerConfig

type ServerConfig struct {
	DB           string
	HideMetadata bool
	Key          string
	KeyEval      string
}

func ReadServerConfig

func ReadServerConfig(path string) *ServerConfig

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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