init_

package
v0.1.6 Latest Latest
Warning

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

Go to latest
Published: Jan 1, 2025 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Command = &cli.Command{
	Name:    "init",
	Aliases: []string{"i"},
	Flags: []cli.Flag{
		config.FlagConfigType,
		&cli.BoolFlag{
			Name:        "overwrite",
			Aliases:     []string{"w"},
			Usage:       "Overwrite existing config file if exist",
			Value:       false,
			Destination: &config.Config.Common.Overwrite,
			Sources: cli.NewValueSourceChain(
				cli.EnvVar("OVERWRITE_CONFIG"),
			),
		},
	},
	Usage:  "Initialize config file",
	Action: action,
}

Functions

func PromptApiKey

func PromptApiKey(ctx context.Context) (ai string, nexus string, err error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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