Help us shape the future of Go! Take the 2026 Go Developer Survey

authcmd

package
v0.28.1 Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2026 License: MIT Imports: 11 Imported by: 0

Documentation

Overview

Package authcmd holds the auth command's non-Cobra logic.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Migrate

func Migrate(ctx context.Context, p *props.Props, dryRun bool) error

Migrate moves every literal credential in the user config into the accounts file, then removes it from the user config.

It moves ONLY credential-shaped keys. The platform wiring beside them — app_id, user_id, client_id, channel_id — is not secret and has no business in an accounts file; keeping the two apart is the whole point of the split.

Types

type Result

type Result struct {
	Moved  []string `json:"moved"`
	From   string   `json:"from"`
	To     string   `json:"to"`
	DryRun bool     `json:"dry_run"`
}

Result reports what a credential migration did (or would do).

Jump to

Keyboard shortcuts

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