Movatterモバイル変換


[0]ホーム

URL:


configuration

package
v0.35.3Latest Latest
Warning

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

Go to latest
Published: Feb 19, 2024 License:GPL-3.0Imports:15Imported by:0

Details

Repository

github.com/arduino/arduino-cli

Links

Documentation

Index

Constants

This section is empty.

Variables

View Source
var HasConsole = isatty.IsTerminal(os.Stdout.Fd()) || isatty.IsCygwinTerminal(os.Stdout.Fd())

HasConsole is set to true if the CLI outputs to a terminal/console

View Source
var IsInteractive = isatty.IsTerminal(os.Stdin.Fd()) || isatty.IsCygwinTerminal(os.Stdin.Fd())

IsInteractive is set to true if the CLI is interactive (it can receive inputs from terminal/console)

View Source
var Settings *viper.Viper

Settings is a global instance of viper holding configurations for the CLI and the gRPC consumers

Functions

funcBindFlags

func BindFlags(cmd *cobra.Command, settings *viper.Viper)

BindFlags creates all the flags binding between the cobra Command and the instance of viper

funcBuiltinToolsDirectories

func BuiltinToolsDirectories(settings *viper.Viper) paths.PathList

BuiltinToolsDirectories returns all paths that may contains bundled-tools.

funcDataDir

func DataDir(settings *viper.Viper) *paths.Path

DataDir returns the full path to the data directory

funcDownloadsDir

func DownloadsDir(settings *viper.Viper) *paths.Path

DownloadsDir returns the full path to the download cache directory

funcFindConfigFileInArgs

func FindConfigFileInArgs(args []string)string

FindConfigFileInArgs returns the config file path using theargument '--config-file' (if specified) or looking in the current working dir

funcGetDefaultBuiltinLibrariesDir

func GetDefaultBuiltinLibrariesDir()string

GetDefaultBuiltinLibrariesDir returns the full path to the default builtin libraries dir

funcHardwareDirectories

func HardwareDirectories(settings *viper.Viper) paths.PathList

HardwareDirectories returns all paths that may contains hardware packages.

funcIDEBuiltinLibrariesDir

func IDEBuiltinLibrariesDir(settings *viper.Viper) *paths.Path

IDEBuiltinLibrariesDir returns the IDE-bundled libraries path. Usuallythis directory is present in the Arduino IDE.

funcInit

func Init(configFilestring) *viper.Viper

Init initialize defaults and read the configuration file.Please note the logging system hasn't been configured yet,so logging shouldn't be used here.

funcLibrariesDir

func LibrariesDir(settings *viper.Viper) *paths.Path

LibrariesDir returns the full path to the user directory containingcustom libraries

funcNetworkProxy

func NetworkProxy(settings *viper.Viper) (*url.URL,error)

NetworkProxy returns the proxy configuration (mainly used by HTTP clients)

funcPackagesDir

func PackagesDir(settings *viper.Viper) *paths.Path

PackagesDir returns the full path to the packages folder

funcProfilesCacheDir

func ProfilesCacheDir(settings *viper.Viper) *paths.Path

ProfilesCacheDir returns the full path to the profiles cache directory(it contains all the platforms and libraries used to compile a sketchusing profiles)

funcSetDefaults

func SetDefaults(settings *viper.Viper)

SetDefaults sets the default values for certain keys

funcUserAgent

func UserAgent(settings *viper.Viper)string

UserAgent returns the user agent (mainly used by HTTP clients)

Types

This section is empty.

Source Files

View all Source files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f orF : Jump to
y orY : Canonical URL
go.dev uses cookies from Google to deliver and enhance the quality of its services and to analyze traffic.Learn more.

[8]ページ先頭

©2009-2025 Movatter.jp