cmdcontext

package
v1.3.1 Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2023 License: BSD-2-Clause Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CliCtx

type CliCtx struct {
	// Is CLI launch system (or local).
	IsSystem bool
	// Use internal module even if an external one is found.
	ForceInternal bool
	// Path to local directory (or empty string if CLI launch is system).
	LocalLaunchDir string
	// Path to Tarantool CLI (tt.yaml) config.
	ConfigPath string
	// ConfigDir is tt configuration file directory.
	// And current working directory, if there is no config.
	ConfigDir string
	// Path to tt daemon (tt_daemon.yaml) config.
	DaemonCfgPath string
	// The flag determines if the tarantool binary is from the internal tt repository.
	IsTarantoolBinFromRepo bool
	// Verbose logging flag. Enables debug log output.
	Verbose bool
	// TarantoolCli is current tarantool cli.
	TarantoolCli TarantoolCli
}

CliCtx - CLI context. Contains flags passed when starting Tarantool CLI and some other parameters.

type CmdCtx

type CmdCtx struct {
	// Cli - CLI context. Contains flags passed when starting
	// Tarantool CLI and some other parameters.
	Cli CliCtx
	// CommandName contains name of the command.
	CommandName string
}

CmdCtx is the main structure of the program context. Contains within itself other structures of CLI modules.

type TarantoolCli added in v1.3.0

type TarantoolCli struct {
	// Executable is a path to Tarantool executable.
	Executable string
	// contains filtered or unexported fields
}

TarantoolCli describes tarantool executable.

func (*TarantoolCli) GetVersion added in v1.3.0

func (tntCli *TarantoolCli) GetVersion() (version.Version, error)

GetVersion returns and caches the tarantool version.

Jump to

Keyboard shortcuts

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