internal/

directory
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Sep 3, 2026 License: MIT

Directories

Path Synopsis
Package auth implements the freshbooks CLI's login flow on top of the freshbooks library's auth package: a loopback PKCE authorization-code exchange over an ephemeral self-signed TLS certificate, a --no-browser paste fallback, and the status/logout/token commands' shared plumbing.
Package auth implements the freshbooks CLI's login flow on top of the freshbooks library's auth package: a loopback PKCE authorization-code exchange over an ephemeral self-signed TLS certificate, a --no-browser paste fallback, and the status/logout/token commands' shared plumbing.
Package cmd builds the freshbooks CLI's cobra command tree: the data-driven registry of 169 resource commands (registry.go, commands_*.go), the auth/config/api non-registry commands, and the global flag plumbing (scope resolution, output formatting, dry-run, exit codes) every command shares.
Package cmd builds the freshbooks CLI's cobra command tree: the data-driven registry of 169 resource commands (registry.go, commands_*.go), the auth/config/api non-registry commands, and the global flag plumbing (scope resolution, output formatting, dry-run, exit codes) every command shares.
Package config handles the freshbooks CLI's configuration file: $XDG_CONFIG_HOME/freshbooks/config.yaml (falling back to ~/.config), the context set it stores, and the flag > env > file > default precedence every global flag and scope field follows.
Package config handles the freshbooks CLI's configuration file: $XDG_CONFIG_HOME/freshbooks/config.yaml (falling back to ~/.config), the context set it stores, and the flag > env > file > default precedence every global flag and scope field follows.
Package docsgen renders docs/cli.md from a cobra command tree using cobra/doc.
Package docsgen renders docs/cli.md from a cobra command tree using cobra/doc.
Package output formats a command result for display, per the freshbooks CLI's -o/--output flag: json, yaml, table, or name.
Package output formats a command result for display, per the freshbooks CLI's -o/--output flag: json, yaml, table, or name.

Jump to

Keyboard shortcuts

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