configure

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Dec 31, 2022 License: BSD-2-Clause Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ConfigName = "tarantool.yaml"

	// instancesEnabledDirName is a default instances enabled directory name.
	InstancesEnabledDirName = "instances.enabled"
)

Variables

This section is empty.

Functions

func Cli

func Cli(cmdCtx *cmdcontext.CmdCtx) error

Cli performs initial CLI configuration.

func ExternalCmd

func ExternalCmd(rootCmd *cobra.Command, cmdCtx *cmdcontext.CmdCtx,
	modulesInfo *modules.ModulesInfo, args []string)

ExternalCmd configures external commands.

func GetCliOpts

func GetCliOpts(configurePath string) (*config.CliOpts, string, error)

GetCliOpts returns Tarantool CLI options from the config file located at path configurePath.

func GetDaemonOpts

func GetDaemonOpts(configurePath string) (*config.DaemonOpts, error)

GetDaemonOpts returns tt daemon options from the config file located at path configurePath.

func GetDefaultCliOpts

func GetDefaultCliOpts() *config.CliOpts

GetDefaultCliOpts returns `CliOpts` filled with default values.

func ValidateCliOpts

func ValidateCliOpts(cliCtx *cmdcontext.CliCtx) error

ValidateCliOpts checks for ambiguous config options.

Types

This section is empty.

Jump to

Keyboard shortcuts

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