Documentation
¶
Overview ¶
Package settings persists user choices that are not secrets, alongside the cookie files in ~/.cu-cli.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type LoginMethod ¶
type LoginMethod string
LoginMethod records how the user prefers to obtain the LMS cookie.
const ( // LoginMethodUnset means the first-run prompt has not happened yet. LoginMethodUnset LoginMethod = "" // LoginMethodManual copies bff.cookie out of an already-open browser. LoginMethodManual LoginMethod = "manual" // LoginMethodBrowser drives Chrome over CDP and captures the cookie. LoginMethodBrowser LoginMethod = "browser" )
type Settings ¶
type Settings struct {
LoginMethod LoginMethod `json:"login_method,omitempty"`
}
Settings is the on-disk shape of ~/.cu-cli/config.json.