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: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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