environment

package
v0.0.0-...-af25eba Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2023 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// Settings 代表此 app 的環境變數
	Settings = new(settings)

	// Flags 代表此 app 的 global flags
	Flags = flags()
)

Functions

func CheckForUpdates

func CheckForUpdates(log *logrus.Logger, home paths.Home, metadata *release.Metadata, force bool) error

CheckForUpdates 檢查是否有更新的 slctl 版本

func DefaultHome

func DefaultHome(base string) string

DefaultHome 回傳此 app 的預設 home 目錄名稱

func IsGlobalFlag

func IsGlobalFlag(flag string) (global bool)

IsGlobalFlag 回傳此 flag 是否為 global flag

func MoveHome

func MoveHome(oldHome, newHome string) error

MoveHome moves home from "oldHome" to "newHome"

Types

This section is empty.

Jump to

Keyboard shortcuts

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