Documentation ¶
Index ¶
Constants ¶
View Source
const ( ArgOutput = "output" ArgOutputShorthand = "o" ArgFormat = "format" ArgFormatShorthand = "f" ArgPretty = "pretty" ArgPrettyShorthand = "p" ArgSingleFile = "single-file" ArgSingleFileShorthand = "s" FormatJSON = "json" FormatYAML = "yaml" TitleProperty = "title" )
View Source
const ( ArgsVerbose = "verbose" ArgsVerboseShorthand = "v" )
View Source
const ( ArgSourceType = "source-type" ArgLiveMode = "live" ArgServerURL = "server" )
View Source
const (
DocsCommandsFolder = "./docs/commands"
)
Variables ¶
View Source
var ( ErrArgumentInvalid = errors.New("argument is invalid") ErrInvalidFormat = errors.New("invalid format") )
Functions ¶
func DocFilePrepender ¶
TODO: Consider moving this to package.
func WriteItems ¶
func WriteItems(items []*api.Item, opts WriteItemsOption) error
Types ¶
type ConvertCommand ¶
func NewConvertCommand ¶
func NewConvertCommand() *ConvertCommand
type DocsCommand ¶
func NewDocsCommand ¶
func NewDocsCommand() *DocsCommand
NewDocsCommand creates a new cobra.Command for `docs` which generates documentation for the application.
type MigrateCommand ¶
func NewMigrateCommand ¶
func NewMigrateCommand() *MigrateCommand
type SyncCommand ¶
type SyncCommandOptions ¶
type WriteItemsOption ¶
type WriteItemsOption struct { Output string // Output specifies the output directory or file path. Format string // Format specifies the format of the output (e.g., JSON, XML). Pretty bool // Pretty specifies whether to format the output in a human-readable way. SingleFile bool // SingleFile specifies whether to write all items into a single file. }
WriteItemsOption represents the options for writing items.
Click to show internal directories.
Click to hide internal directories.