configcli

package
v0.0.0-...-831fdfd Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2024 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cli

type Cli struct {
	Command string `flag:"name=command,desc='choice command(update, close, checkupdaue, list)',default=''"`
	Path    string `flag:"name=path,desc='title of mod',default=''"`
}

type Config

type Config struct {
	PullRequestTitle string     `json:"pull_request_title" yaml:"pull_request_title"`
	PullRequestBody  string     `json:"pull_request_body" yaml:"pull_request_body"`
	Branches         []string   `json:"branches" yaml:"branches"`
	Source           *Source    `json:"source" yaml:"source"`
	UpdateOpt        *UpdateOpt `json:"update_opt" yaml:"update_opt"`
}

func NewConfig

func NewConfig() *Config

type Source

type Source struct {
	TypeGit    string `json:"type" yaml:"type" env:"GIT_TYPE"`
	Username   string `json:"username" yaml:"username" env:"GIT_USERNAME"`
	Password   string `json:"password" yaml:"password" env:"GIT_PASSWORD,GIT_TOKEN"`
	APIURL     string `json:"apiurl" yaml:"apiurl" env:"GIT_API"`
	Repository string `json:"repository" yaml:"repository" env:"GIT_REPO"`
	Owner      string `json:"owner" yaml:"owner" env:"GIT_OWNER"`
}

type UpdateOpt

type UpdateOpt struct {
	Pre     bool `json:"pre" yaml:"pre" default:"false"`
	Major   bool `json:"major" yaml:"major" default:"false"`
	UpMajor bool `json:"up_major" yaml:"up_major" default:"false"`
	Cached  bool `json:"cached" yaml:"cached" default:"true"`
}

Jump to

Keyboard shortcuts

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