commands

package
v0.0.0-...-81dce24 Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2025 License: MIT Imports: 70 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PrintSubcommandUsage

func PrintSubcommandUsage(flags flag.FlagSet)

func PrintUsage

func PrintUsage(ctx errors.Context, in error)

func Run

func Run(ctx errors.Context, args ...string)

Types

type CatAlfred

func (CatAlfred) CompletionGenres

func (c CatAlfred) CompletionGenres() ids.Genre

func (CatAlfred) Run

func (cmd CatAlfred) Run(dep command.Request)

func (*CatAlfred) SetFlagSet

func (cmd *CatAlfred) SetFlagSet(f *flag.FlagSet)

type CatBlob

type CatBlob struct {
	command_components.BlobStoreLocal

	Utility   script_value.Utility
	PrefixSha bool
}

func (CatBlob) Run

func (cmd CatBlob) Run(
	dep command.Request,
)

func (*CatBlob) SetFlagSet

func (cmd *CatBlob) SetFlagSet(f *flag.FlagSet)

type CatBlobShas

type CatBlobShas struct {
	command_components.EnvRepo
}

func (CatBlobShas) CompletionGenres

func (c CatBlobShas) CompletionGenres() ids.Genre

func (CatBlobShas) Run

func (c CatBlobShas) Run(dep command.Request)

type Checkin

type Checkin struct {
	command_components.LocalWorkingCopyWithQueryGroup

	IgnoreBlob bool
	Proto      sku.Proto

	command_components.Checkout

	CheckoutBlobAndRun string
	OpenBlob           bool
}

func (*Checkin) ModifyBuilder

func (c *Checkin) ModifyBuilder(b *query.Builder)

func (Checkin) Run

func (cmd Checkin) Run(dep command.Request)

func (*Checkin) SetFlagSet

func (cmd *Checkin) SetFlagSet(f *flag.FlagSet)

type CheckinBlob

type CheckinBlob struct {
	command_components.LocalWorkingCopy

	Delete  bool
	NewTags collections_ptr.Flag[ids.Tag, *ids.Tag]
}

func (CheckinBlob) Run

func (cmd CheckinBlob) Run(req command.Request)

func (*CheckinBlob) SetFlagSet

func (cmd *CheckinBlob) SetFlagSet(f *flag.FlagSet)

type CheckinJson

type CheckinJson struct {
	command_components.LocalWorkingCopy
}

func (CheckinJson) Run

func (cmd CheckinJson) Run(req command.Request)

type Checkout

type Checkout struct {
	command_components.LocalWorkingCopyWithQueryGroup

	CheckoutOptions checkout_options.Options
	Organize        bool
}

func (Checkout) ModifyBuilder

func (c Checkout) ModifyBuilder(b *query.Builder)

func (Checkout) Run

func (cmd Checkout) Run(req command.Request)

func (*Checkout) SetFlagSet

func (c *Checkout) SetFlagSet(f *flag.FlagSet)

type Clean

type Clean struct {
	command_components.LocalWorkingCopyWithQueryGroup
	// contains filtered or unexported fields
}

func (Clean) ModifyBuilder

func (req Clean) ModifyBuilder(b *query.Builder)

func (Clean) Run

func (cmd Clean) Run(req command.Request)

func (*Clean) SetFlagSet

func (c *Clean) SetFlagSet(f *flag.FlagSet)

type Clone

func (Clone) Run

func (cmd Clone) Run(req command.Request)

func (*Clone) SetFlagSet

func (cmd *Clone) SetFlagSet(f *flag.FlagSet)

type Complete

type Complete struct {
	command_components.Env
	command_components.Complete
	// contains filtered or unexported fields
}

func (Complete) GetDescription

func (cmd Complete) GetDescription() command.Description

func (Complete) Run

func (cmd Complete) Run(req command.Request)

func (*Complete) SetFlagSet

func (cmd *Complete) SetFlagSet(f *flag.FlagSet)

type Deinit

type Deinit struct {
	command_components.LocalWorkingCopy

	Force bool
}

func (Deinit) Run

func (cmd Deinit) Run(dep command.Request)

func (*Deinit) SetFlagSet

func (cmd *Deinit) SetFlagSet(f *flag.FlagSet)

type Diff

func (Diff) ModifyBuilder

func (c Diff) ModifyBuilder(
	b *query.Builder,
)

func (Diff) Run

func (cmd Diff) Run(dep command.Request)

func (*Diff) SetFlagSet

func (cmd *Diff) SetFlagSet(f *flag.FlagSet)

type DormantAdd

type DormantAdd struct {
	command_components.LocalWorkingCopy
}

func (DormantAdd) Run

func (cmd DormantAdd) Run(dep command.Request)

type DormantEdit

type DormantEdit struct {
	command_components.LocalWorkingCopy
}

func (DormantEdit) Run

func (cmd DormantEdit) Run(dep command.Request)

type DormantRemove

type DormantRemove struct {
	command_components.LocalWorkingCopy
}

func (DormantRemove) Run

func (cmd DormantRemove) Run(dep command.Request)

type Edit

type Edit struct {
	command_components.LocalWorkingCopyWithQueryGroup

	// TODO-P3 add force
	IgnoreWorkspace bool
	command_components.Checkout
	CheckoutMode checkout_mode.Mode
}

func (Edit) CompletionGenres

func (c Edit) CompletionGenres() ids.Genre

func (Edit) Run

func (cmd Edit) Run(req command.Request)

func (*Edit) SetFlagSet

func (cmd *Edit) SetFlagSet(f *flag.FlagSet)

type EditConfig

type EditConfig struct {
	command_components.LocalWorkingCopy
}

func (EditConfig) Run

func (cmd EditConfig) Run(
	dep command.Request,
)

type Exec

type Exec struct {
	command_components.LocalWorkingCopy
}

func (Exec) Run

func (cmd Exec) Run(dep command.Request)

type Export

func (Export) Run

func (cmd Export) Run(dep command.Request)

func (*Export) SetFlagSet

func (cmd *Export) SetFlagSet(f *flag.FlagSet)

type FindMissing

type FindMissing struct {
	command_components.LocalWorkingCopy
}

func (FindMissing) Run

func (cmd FindMissing) Run(dep command.Request)

type FormatBlob

type FormatBlob struct {
	command_components.LocalWorkingCopy

	Stdin  bool
	Format string
	ids.RepoId
	UTIGroup string
}

func (*FormatBlob) FormatFromStdin

func (c *FormatBlob) FormatFromStdin(
	u *local_working_copy.Repo,
	args ...string,
) (err error)

func (*FormatBlob) Run

func (cmd *FormatBlob) Run(dep command.Request)

func (*FormatBlob) SetFlagSet

func (cmd *FormatBlob) SetFlagSet(f *flag.FlagSet)

type FormatObject

type FormatObject struct {
	command_components.LocalWorkingCopy

	CheckoutMode checkout_mode.Mode // add test that says this is unused for stdin
	Stdin        bool               // switch to using `-`
	ids.RepoId
	UTIGroup string
}

func (*FormatObject) FormatFromStdin

func (c *FormatObject) FormatFromStdin(
	u *local_working_copy.Repo,
	args ...string,
) (err error)

func (*FormatObject) Run

func (cmd *FormatObject) Run(dep command.Request)

func (*FormatObject) SetFlagSet

func (cmd *FormatObject) SetFlagSet(f *flag.FlagSet)

type FormatOrganize

type FormatOrganize struct {
	command_components.LocalWorkingCopy

	Flags organize_text.Flags
}

func (*FormatOrganize) Run

func (cmd *FormatOrganize) Run(dep command.Request)

func (*FormatOrganize) SetFlagSet

func (cmd *FormatOrganize) SetFlagSet(f *flag.FlagSet)

type Fsck

func (Fsck) Run

func (cmd Fsck) Run(dep command.Request)

func (*Fsck) SetFlagSet

func (cmd *Fsck) SetFlagSet(f *flag.FlagSet)

type Import

Switch to External store

func (Import) Run

func (cmd Import) Run(dep command.Request)

func (*Import) SetFlagSet

func (cmd *Import) SetFlagSet(f *flag.FlagSet)

type Info

type Info struct {
	config_immutable.ConfigPrivate
}

func (Info) Run

func (c Info) Run(req command.Request)

func (Info) SetFlagSet

func (c Info) SetFlagSet(f *flag.FlagSet)

type InfoRepo

type InfoRepo struct {
	command_components.EnvRepo
}

func (InfoRepo) Run

func (cmd InfoRepo) Run(req command.Request)

type InfoWorkspace

type InfoWorkspace struct {
	command_components.LocalWorkingCopy
}

func (InfoWorkspace) Run

func (cmd InfoWorkspace) Run(req command.Request)

type Init

type Init struct {
	command_components.Genesis
}

func (*Init) Run

func (cmd *Init) Run(req command.Request)

func (*Init) SetFlagSet

func (cmd *Init) SetFlagSet(f *flag.FlagSet)

type InitArchive

type InitArchive struct {
	env_repo.BigBang
}

func (InitArchive) Run

func (cmd InitArchive) Run(req command.Request)

func (*InitArchive) SetFlagSet

func (c *InitArchive) SetFlagSet(f *flag.FlagSet)

type InitWorkspace

type InitWorkspace struct {
	command_components.Env
	command_components.LocalWorkingCopy

	DefaultQueryGroup values.String
	Proto             sku.Proto
	// contains filtered or unexported fields
}

func (InitWorkspace) Complete

func (cmd InitWorkspace) Complete(
	_ command.Request,
	envLocal env_local.Env,
	commandLine command.CommandLine,
)

func (InitWorkspace) Run

func (cmd InitWorkspace) Run(req command.Request)

func (*InitWorkspace) SetFlagSet

func (cmd *InitWorkspace) SetFlagSet(f *flag.FlagSet)

type Last

type Last struct {
	command_components.EnvRepo
	command_components.LocalArchive

	RepoId   ids.RepoId
	Edit     bool
	Organize bool
	Format   string
}

func (Last) CompletionGenres

func (c Last) CompletionGenres() ids.Genre

func (Last) Run

func (cmd Last) Run(dep command.Request)

func (*Last) SetFlagSet

func (cmd *Last) SetFlagSet(f *flag.FlagSet)

type Mergetool

func (Mergetool) Run

func (cmd Mergetool) Run(req command.Request)

type New

type New struct {
	command_components.LocalWorkingCopy

	ids.RepoId
	Count int
	// TODO combine organize and edit and refactor
	command_components.Checkout
	PrintOnly bool
	Filter    script_value.ScriptValue
	Shas      bool

	sku.Proto
	// contains filtered or unexported fields
}

func (*New) Run

func (cmd *New) Run(req command.Request)

func (*New) SetFlagSet

func (cmd *New) SetFlagSet(f *flag.FlagSet)

func (New) ValidateFlagsAndArgs

func (c New) ValidateFlagsAndArgs(
	u *local_working_copy.Repo,
	args ...string,
) (err error)

type Organize

type Organize struct {
	command_components.LocalWorkingCopy
	command_components.QueryGroup

	organize_text.Flags
	Mode organize_text_mode.Mode

	Filter script_value.ScriptValue
	// contains filtered or unexported fields
}

Refactor and fold components into userops

func (Organize) Complete

func (cmd Organize) Complete(
	req command.Request,
	envLocal env_local.Env,
	commandLine command.CommandLine,
)

func (*Organize) CompletionGenres

func (c *Organize) CompletionGenres() ids.Genre

func (*Organize) ModifyBuilder

func (c *Organize) ModifyBuilder(b *query.Builder)

func (*Organize) Run

func (cmd *Organize) Run(req command.Request)

func (*Organize) SetFlagSet

func (c *Organize) SetFlagSet(f *flag.FlagSet)

type PeekZettelIds

type PeekZettelIds struct {
	command_components.LocalWorkingCopy
}

func (PeekZettelIds) Run

func (cmd PeekZettelIds) Run(dep command.Request)

type Pull

func (Pull) Run

func (cmd Pull) Run(req command.Request)

func (*Pull) SetFlagSet

func (cmd *Pull) SetFlagSet(f *flag.FlagSet)

type PullBlobStore

func (*PullBlobStore) Run

func (cmd *PullBlobStore) Run(
	dep command.Request,
)

func (*PullBlobStore) SetFlagSet

func (cmd *PullBlobStore) SetFlagSet(f *flag.FlagSet)

type Push

func (Push) Run

func (cmd Push) Run(req command.Request)

func (*Push) SetFlagSet

func (cmd *Push) SetFlagSet(flagSet *flag.FlagSet)

type ReadBlob

type ReadBlob struct {
	command_components.EnvRepo
}

func (ReadBlob) Run

func (c ReadBlob) Run(dep command.Request)

type Reindex

type Reindex struct {
	command_components.LocalWorkingCopy
}

func (Reindex) Run

func (cmd Reindex) Run(dep command.Request)

type RemoteAdd

type RemoteAdd struct {
	command_components.LocalWorkingCopy
	command_components.RemoteTransfer
	// contains filtered or unexported fields
}

func (RemoteAdd) Run

func (cmd RemoteAdd) Run(req command.Request)

func (*RemoteAdd) SetFlagSet

func (cmd *RemoteAdd) SetFlagSet(flagSet *flag.FlagSet)

type Revert

func (Revert) CompletionGenres

func (c Revert) CompletionGenres() ids.Genre

func (Revert) Run

func (cmd Revert) Run(dep command.Request)

func (*Revert) SetFlagSet

func (c *Revert) SetFlagSet(f *flag.FlagSet)

type Serve

func (Serve) Run

func (cmd Serve) Run(req command.Request)

func (*Serve) SetFlagSet

func (cmd *Serve) SetFlagSet(f *flag.FlagSet)

type Show

type Show struct {
	command_components.EnvRepo
	command_components.LocalArchive
	command_components.QueryGroup

	After  ids.Tai
	Before ids.Tai
	Format string
	// contains filtered or unexported fields
}

func (Show) Complete

func (cmd Show) Complete(
	req command.Request,
	envLocal env_local.Env,
	commandLine command.CommandLine,
)

func (Show) CompletionGenres

func (cmd Show) CompletionGenres() ids.Genre

func (Show) Run

func (cmd Show) Run(req command.Request)

func (*Show) SetFlagSet

func (cmd *Show) SetFlagSet(flagSet *flag.FlagSet)

type Status

func (Status) ModifyBuilder

func (c Status) ModifyBuilder(
	b *query.Builder,
)

func (Status) Run

func (cmd Status) Run(req command.Request)

type Test

type Test struct{}

func (Test) Run

func (c Test) Run(dep command.Request)

func (*Test) SetFlagSet

func (*Test) SetFlagSet(*flag.FlagSet)

type TomlBookmark

type TomlBookmark struct {
	ObjectId string
	Tags     []string
	Url      string
}

type WriteBlob

type WriteBlob struct {
	command_components.BlobStoreLocal

	Check         bool
	UtilityBefore script_value.Utility
	UtilityAfter  script_value.Utility
}

func (WriteBlob) Run

func (cmd WriteBlob) Run(
	dep command.Request,
)

func (*WriteBlob) SetFlagSet

func (cmd *WriteBlob) SetFlagSet(f *flag.FlagSet)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳