Documentation
¶
Overview ¶
Package list implements `bitbottle snippet list`.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewCmdList ¶
NewCmdList constructs the cobra command. The runF override lets tests inject their own runner without standing up a real backend.
func ResolveWorkspace ¶
ResolveWorkspace returns the workspace to use: explicit flag wins, then the User slug from the host's config entry (the Bitbucket username/workspace slug). Exported so sibling packages (view, create, delete) can share the logic.
func SnippetListFields ¶
func SnippetListFields(f *factory.Factory, cfg format.OutputConfig) *format.Printer[backend.Snippet]
SnippetListFields builds a printer with the standard snippet list fields. Exported so sibling commands (view, etc.) can extend it.
Types ¶
Click to show internal directories.
Click to hide internal directories.