cmdutil

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Sep 5, 2025 License: AGPL-3.0 Imports: 1 Imported by: 0

Documentation

Overview

Package cmdutil provides shared flags and configuration utilities for starmap commands.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ExportFlags

type ExportFlags struct {
	Format   string
	Provider string
	Output   string
	Pretty   bool
}

ExportFlags holds flags for export command.

func AddExportFlags

func AddExportFlags(cmd *cobra.Command) *ExportFlags

AddExportFlags adds export-specific flags.

type FetchFlags

type FetchFlags struct {
	Provider string
	All      bool
	Timeout  int
}

FetchFlags holds flags for fetch command.

func AddFetchFlags

func AddFetchFlags(cmd *cobra.Command) *FetchFlags

AddFetchFlags adds fetch-specific flags.

type GlobalFlags

type GlobalFlags struct {
	Output  string
	Quiet   bool
	Verbose bool
	NoColor bool
}

GlobalFlags holds common flags across all commands.

func AddGlobalFlags

func AddGlobalFlags(cmd *cobra.Command) *GlobalFlags

AddGlobalFlags adds common flags to the root command.

type ResourceFlags

type ResourceFlags struct {
	Provider string
	Author   string
	Limit    int
	Search   string
	Filter   []string
	All      bool
}

ResourceFlags holds flags for resource-specific operations.

func AddResourceFlags

func AddResourceFlags(cmd *cobra.Command) *ResourceFlags

AddResourceFlags adds resource-specific flags to a command.

type UpdateFlags

type UpdateFlags struct {
	Provider    string
	Source      string
	DryRun      bool
	Force       bool
	AutoApprove bool
	Output      string
	Input       string
	Cleanup     bool
	Reformat    bool
}

UpdateFlags holds flags for update command.

func AddUpdateFlags

func AddUpdateFlags(cmd *cobra.Command) *UpdateFlags

AddUpdateFlags adds update-specific flags to the update command.

Jump to

Keyboard shortcuts

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