Documentation
¶
Overview ¶
Package cli wires cobra commands to the vinted client, the store and the output layer. One file per noun. Command handlers stay thin: parse flags, call the client, print.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CommandTree ¶
CommandTree returns the whole command tree, wired but never executed, so tools outside the package can walk it. The docs generator uses it to build the command reference from the binary rather than from a copy that drifts.
Types ¶
type App ¶
type App struct {
Version string
Paths config.Paths
Cfg config.Config
Creds config.Credentials
Profile string
Client *vinted.Client
// Account is the logged-in profile's session in the Galleton daemon;
// nil when the profile has none.
Account *managedAccount
// Gate is the shared cooldown, pacing and budget for the client's site.
Gate *throttle.Gate
// Proxy is the proxy all Vinted traffic goes through, without
// credentials; empty for a direct connection.
Proxy string
Printer output.Printer
Stdout io.Writer
Stderr io.Writer
Stdin io.Reader
// Interactive is true only when stdin, stdout and stderr are all TTYs and
// --no-input is absent. Prompts happen only then.
Interactive bool
// contains filtered or unexported fields
}
App is the per-invocation state shared by every command.