Documentation
¶
Index ¶
- func PrintSubcommandUsage(flags flag.FlagSet)
- func PrintUsage(ctx errors.Context, in error)
- func Run(ctx errors.Context, args ...string)
- type CatAlfred
- type CatBlob
- type CatBlobShas
- type Checkin
- type CheckinBlob
- type CheckinJson
- type Checkout
- type Clean
- type Clone
- type Complete
- type Deinit
- type Diff
- type DormantAdd
- type DormantEdit
- type DormantRemove
- type Edit
- type EditConfig
- type Exec
- type Export
- type FindMissing
- type FormatBlob
- type FormatObject
- type FormatOrganize
- type Fsck
- type Import
- type Info
- type InfoRepo
- type InfoWorkspace
- type Init
- type InitArchive
- type InitWorkspace
- type Last
- type Mergetool
- type New
- type Organize
- type PeekZettelIds
- type Pull
- type PullBlobStore
- type Push
- type ReadBlob
- type Reindex
- type RemoteAdd
- type Revert
- type Serve
- type Show
- type Status
- type Test
- type TomlBookmark
- type WriteBlob
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PrintSubcommandUsage ¶
func PrintUsage ¶
Types ¶
type CatAlfred ¶
type CatAlfred struct { command_components.LocalWorkingCopyWithQueryGroup genres.Genre }
func (CatAlfred) CompletionGenres ¶
func (*CatAlfred) SetFlagSet ¶
type CatBlob ¶
type CatBlob struct { command_components.BlobStoreLocal Utility script_value.Utility PrefixSha bool }
func (*CatBlob) SetFlagSet ¶
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 (*Checkin) SetFlagSet ¶
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 (*Checkout) SetFlagSet ¶
type Clean ¶
type Clean struct { command_components.LocalWorkingCopyWithQueryGroup // contains filtered or unexported fields }
func (Clean) ModifyBuilder ¶
func (*Clean) SetFlagSet ¶
type Clone ¶
type Clone struct { command_components.Genesis command_components.RemoteTransfer command_components.QueryGroup }
func (*Clone) SetFlagSet ¶
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) SetFlagSet ¶
type Deinit ¶
type Deinit struct { command_components.LocalWorkingCopy Force bool }
func (*Deinit) SetFlagSet ¶
type Diff ¶
type Diff struct {
command_components.LocalWorkingCopyWithQueryGroup
}
func (Diff) ModifyBuilder ¶
func (*Diff) SetFlagSet ¶
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 (*Edit) SetFlagSet ¶
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
}
type Export ¶
type Export struct { command_components.LocalWorkingCopyWithQueryGroup AgeIdentity age.Identity CompressionType config_immutable.CompressionType }
func (*Export) SetFlagSet ¶
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 ¶
type Fsck struct { command_components.LocalWorkingCopyWithQueryGroup Genres ids.Genre }
func (*Fsck) SetFlagSet ¶
type Import ¶
type Import struct { command_components.LocalWorkingCopy command_components.RemoteBlobStore config_immutable.StoreVersion InventoryList string PrintCopies bool sku.Proto }
Switch to External store
func (*Import) SetFlagSet ¶
type InfoRepo ¶
type InfoRepo struct {
command_components.EnvRepo
}
type InfoWorkspace ¶
type InfoWorkspace struct {
command_components.LocalWorkingCopy
}
func (InfoWorkspace) Run ¶
func (cmd InfoWorkspace) Run(req command.Request)
type InitArchive ¶
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 (*Last) SetFlagSet ¶
type Mergetool ¶
type Mergetool struct {
command_components.LocalWorkingCopyWithQueryGroup
}
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) SetFlagSet ¶
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) CompletionGenres ¶
func (*Organize) ModifyBuilder ¶
func (*Organize) SetFlagSet ¶
type PeekZettelIds ¶
type PeekZettelIds struct {
command_components.LocalWorkingCopy
}
func (PeekZettelIds) Run ¶
func (cmd PeekZettelIds) Run(dep command.Request)
type Pull ¶
type Pull struct { command_components.LocalWorkingCopy command_components.RemoteTransfer command_components.QueryGroup }
func (*Pull) SetFlagSet ¶
type PullBlobStore ¶
type PullBlobStore struct { command_components.LocalWorkingCopyWithQueryGroup command_components.RemoteBlobStore }
func (*PullBlobStore) Run ¶
func (cmd *PullBlobStore) Run( dep command.Request, )
func (*PullBlobStore) SetFlagSet ¶
func (cmd *PullBlobStore) SetFlagSet(f *flag.FlagSet)
type Push ¶
type Push struct { command_components.LocalWorkingCopy command_components.RemoteTransfer command_components.QueryGroup }
func (*Push) SetFlagSet ¶
type ReadBlob ¶
type ReadBlob struct {
command_components.EnvRepo
}
type Reindex ¶
type Reindex struct {
command_components.LocalWorkingCopy
}
type RemoteAdd ¶
type RemoteAdd struct { command_components.LocalWorkingCopy command_components.RemoteTransfer // contains filtered or unexported fields }
func (*RemoteAdd) SetFlagSet ¶
type Revert ¶
type Revert struct { command_components.LocalWorkingCopyWithQueryGroup Last bool }
func (Revert) CompletionGenres ¶
func (*Revert) SetFlagSet ¶
type Serve ¶
type Serve struct { command_components.Env command_components.EnvRepo command_components.LocalArchive }
func (*Serve) SetFlagSet ¶
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) CompletionGenres ¶
func (*Show) SetFlagSet ¶
type Status ¶
type Status struct {
command_components.LocalWorkingCopyWithQueryGroup
}
func (Status) ModifyBuilder ¶
type TomlBookmark ¶
type WriteBlob ¶
type WriteBlob struct { command_components.BlobStoreLocal Check bool UtilityBefore script_value.Utility UtilityAfter script_value.Utility }
func (*WriteBlob) SetFlagSet ¶
Source Files
¶
- cat_alfred.go
- cat_blob.go
- cat_blob_shas.go
- checkin.go
- checkin_blob.go
- checkin_json.go
- checkout.go
- clean.go
- clone.go
- complete.go
- deinit.go
- diff.go
- dormant_add.go
- dormant_edit.go
- dormant_remove.go
- edit.go
- edit_config.go
- exec.go
- export.go
- find_missing.go
- format_blob.go
- format_object.go
- format_organize.go
- fsck.go
- import.go
- info.go
- info_repo.go
- info_workspace.go
- init.go
- init_archive.go
- init_workspace.go
- last.go
- main.go
- mergetool.go
- new.go
- organize.go
- peek_zettel_ids.go
- pull.go
- pull_blob_store.go
- push.go
- read_blob.go
- reindex.go
- remote_add.go
- revert.go
- serve.go
- show.go
- status.go
- test.go
- usage.go
- write_blob.go
Click to show internal directories.
Click to hide internal directories.