sdk

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2022 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RunToolbx

func RunToolbx(options ...ToolbxOption) error

Types

type ToolbxOption

type ToolbxOption func(cfg *config.Configuration)

func WithBrandLabel

func WithBrandLabel(brand string) ToolbxOption

func WithCommandsRepository

func WithCommandsRepository(repo string, branch string) ToolbxOption

func WithConfigFile

func WithConfigFile(path string) ToolbxOption

WithConfigFile ensure the configuration will be loaded from path. Path need to contain also YAML file.

func WithDataDir

func WithDataDir(dataDir string) ToolbxOption

WithDataDir set data directory, where are placed installations etc...

func WithGitlab

func WithGitlab(personalAccessToken string) ToolbxOption

If you want to use GitLab for distribution, you need to provide GitLab token

func WithXdg

func WithXdg(name string) ToolbxOption

WithXdg ensure the toolbx will use XDG directory spec. for config files and all data files.

The data will be stored in $HOME/.local/share/{name} and configuration will be loaded from $HOME/.config/{name}/{name}.yaml

Jump to

Keyboard shortcuts

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