config

package
v0.24.0 Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2026 License: MPL-2.0 Imports: 5 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

Overview

Package config provides the config of cli

Index

Constants

View Source
const (
	KeyTokenString = "token"
	KeyUser        = "user"
	KeyUsername    = "username"
)

Keys about auth

View Source
const (
	KeyInteractive     = "interactive"
	KeyAutoCheckUpdate = "auto_check_update"
)

Keys about CLI behavior

Variables

This section is empty.

Functions

func DefaultConfigFilePath

func DefaultConfigFilePath() (string, error)

DefaultConfigFilePath returns the default config file path($HOME/.config/zeabur/cli.yaml)

Types

type Config

type Config interface {
	GetTokenString() string // token string is the single token string, it may be set by user or our login function
	SetTokenString(token string)

	GetUser() string // nickname of user
	SetUser(user string)
	GetUsername() string // it is kind like id of user
	SetUsername(username string)

	GetContext() zcontext.Context

	Write() error
}

func New

func New(path string) Config

Jump to

Keyboard shortcuts

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