create

package
v1.135.0 Latest Latest
Warning

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

Go to latest
Published: Jun 1, 2026 License: MIT Imports: 8 Imported by: 0

Documentation

Overview

Package create implements `bitbottle snippet create`.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCmdCreate

func NewCmdCreate(f *factory.Factory, runF ...func(*Options) error) *cobra.Command

NewCmdCreate constructs the cobra command. The runF override lets tests inject their own runner without standing up a real backend.

Types

type Options

type Options struct {
	Output    format.OutputConfig
	Hostname  string
	Workspace string
	Title     string
	Files     []string
	Private   bool
}

Options carries parsed flags for `snippet create`.

Jump to

Keyboard shortcuts

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