commands_dodder

package
v0.1.13 Latest Latest
Warning

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

Go to latest
Published: May 18, 2026 License: MIT Imports: 97 Imported by: 0

Documentation

Index

Constants

View Source
const HandshakeProtocolName = "dodder-http-v1"

HandshakeProtocolName is the protocol name advertised in field 5 of the handshake line. Test harnesses can match on this to confirm they're talking to a dodder serve and not some other handshake protocol on the same line shape.

View Source
const HandshakeProtocolVersion = 1

HandshakeProtocolVersion is the dodder serve handshake protocol version. Modeled on hashicorp/go-plugin and the clown plugin protocol; bumped on incompatible changes to the handshake line.

Variables

This section is empty.

Functions

func GetUtility

func GetUtility(name string) command.Utility

func SetVersion

func SetVersion(v, c string)

SetVersion populates the version subcommand with the ldflag-injected values from `package main`. Each cmd/* main is responsible for calling this before utility.Run.

Types

type AddZettelIds

type AddZettelIds struct {
	command_components_dodder.LocalWorkingCopy
	// contains filtered or unexported fields
}

func (*AddZettelIds) GetArgs

func (cmd *AddZettelIds) GetArgs() []command.ArgGroup

GetArgs returns nil: reads candidates from stdin, not positional args.

func (AddZettelIds) GetDescription

func (cmd AddZettelIds) GetDescription() command.Description

func (AddZettelIds) Run

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

type CatAlfred

func (CatAlfred) CompletionGenres

func (c CatAlfred) CompletionGenres() ids.Genre

func (*CatAlfred) GetArgs

func (cmd *CatAlfred) GetArgs() []command.ArgGroup

func (CatAlfred) GetDescription

func (cmd CatAlfred) GetDescription() command.Description

func (CatAlfred) Run

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

func (*CatAlfred) SetFlagDefinitions

func (cmd *CatAlfred) SetFlagDefinitions(
	flagDefinitions interfaces.CLIFlagDefinitions,
)

type CatObject

func (*CatObject) GetArgs

func (cmd *CatObject) GetArgs() []command.ArgGroup

func (CatObject) GetDescription

func (cmd CatObject) GetDescription() command.Description

func (CatObject) Run

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

func (*CatObject) SetFlagDefinitions

func (cmd *CatObject) SetFlagDefinitions(flagDefs interfaces.CLIFlagDefinitions)

type CheckWorkspace

type CheckWorkspace struct {
	command_components_dodder.LocalWorkingCopy
}

func (*CheckWorkspace) GetArgs

func (cmd *CheckWorkspace) GetArgs() []command.ArgGroup

func (CheckWorkspace) GetDescription

func (cmd CheckWorkspace) GetDescription() command.Description

func (CheckWorkspace) Run

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

type Checkin

type Checkin struct {
	command_components_dodder.LocalWorkingCopyWithQueryGroup

	IgnoreBlob bool
	Proto      sku.Proto

	command_components_dodder.Checkout

	CheckoutBlobAndRun string
	OpenBlob           bool
	// contains filtered or unexported fields
}

func (*Checkin) Complete

func (cmd *Checkin) Complete(
	_ command.Request,
	envLocal env_local.Env,
	commandLine command.CommandLineInput,
)

TODO refactor into common

func (*Checkin) GetArgs

func (cmd *Checkin) GetArgs() []command.ArgGroup

func (Checkin) GetDescription

func (cmd Checkin) GetDescription() command.Description

func (Checkin) Run

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

func (*Checkin) SetFlagDefinitions

func (cmd *Checkin) SetFlagDefinitions(
	flagSet interfaces.CLIFlagDefinitions,
)

type CheckinBlob

func (*CheckinBlob) GetArgs

func (cmd *CheckinBlob) GetArgs() []command.ArgGroup

func (CheckinBlob) GetDescription

func (cmd CheckinBlob) GetDescription() command.Description

func (CheckinBlob) Run

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

func (*CheckinBlob) SetFlagDefinitions

func (cmd *CheckinBlob) SetFlagDefinitions(
	flagDefinitions interfaces.CLIFlagDefinitions,
)

type CheckinJson

type CheckinJson struct {
	command_components_dodder.LocalWorkingCopy
}

func (*CheckinJson) GetArgs

func (cmd *CheckinJson) GetArgs() []command.ArgGroup

GetArgs returns nil: reads from stdin, not positional arguments.

func (CheckinJson) GetDescription

func (cmd CheckinJson) GetDescription() command.Description

func (CheckinJson) Run

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

type Checkout

type Checkout struct {
	command_components_dodder.LocalWorkingCopyWithQueryGroup

	CheckoutOptions checkout_options.Options
	Organize        bool
}

func (*Checkout) GetArgs

func (cmd *Checkout) GetArgs() []command.ArgGroup

func (Checkout) GetDescription

func (cmd Checkout) GetDescription() command.Description

func (Checkout) Run

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

func (*Checkout) SetFlagDefinitions

func (cmd *Checkout) SetFlagDefinitions(
	flagDefinitions interfaces.CLIFlagDefinitions,
)

type Clean

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

func (*Clean) GetArgs

func (cmd *Clean) GetArgs() []command.ArgGroup

func (Clean) GetDescription

func (cmd Clean) GetDescription() command.Description

func (Clean) Run

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

func (*Clean) SetFlagDefinitions

func (c *Clean) SetFlagDefinitions(f interfaces.CLIFlagDefinitions)

type Clone

func (*Clone) GetArgs

func (cmd *Clone) GetArgs() []command.ArgGroup

func (Clone) GetDescription

func (cmd Clone) GetDescription() command.Description

func (Clone) Run

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

func (*Clone) SetFlagDefinitions

func (cmd *Clone) SetFlagDefinitions(
	flagDefinitions interfaces.CLIFlagDefinitions,
)

type Complete

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

func (*Complete) GetArgs

func (cmd *Complete) GetArgs() []command.ArgGroup

func (Complete) GetDescription

func (cmd Complete) GetDescription() command.Description

func (Complete) Run

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

func (*Complete) SetFlagDefinitions

func (cmd *Complete) SetFlagDefinitions(
	flagDefinitions interfaces.CLIFlagDefinitions,
)

type Deinit

type Deinit struct {
	command_components_dodder.LocalWorkingCopy

	Force bool
}

func (*Deinit) GetArgs

func (cmd *Deinit) GetArgs() []command.ArgGroup

GetArgs returns nil: no positional arguments.

func (Deinit) GetDescription

func (cmd Deinit) GetDescription() command.Description

func (Deinit) Run

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

func (*Deinit) SetFlagDefinitions

func (cmd *Deinit) SetFlagDefinitions(
	flagDefinitions interfaces.CLIFlagDefinitions,
)

type Diff

func (*Diff) Complete

func (cmd *Diff) Complete(
	_ command.Request,
	envLocal env_local.Env,
	commandLine command.CommandLineInput,
)

TODO filter to checked out objects, tags, and types

func (*Diff) GetArgs

func (cmd *Diff) GetArgs() []command.ArgGroup

func (Diff) GetDescription

func (cmd Diff) GetDescription() command.Description

func (Diff) Run

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

func (*Diff) SetFlagDefinitions

func (cmd *Diff) SetFlagDefinitions(f interfaces.CLIFlagDefinitions)

type DormantAdd

type DormantAdd struct {
	command_components_dodder.LocalWorkingCopy
}

func (*DormantAdd) GetArgs

func (cmd *DormantAdd) GetArgs() []command.ArgGroup

func (DormantAdd) GetDescription

func (cmd DormantAdd) GetDescription() command.Description

func (DormantAdd) Run

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

type DormantEdit

type DormantEdit struct {
	command_components_dodder.LocalWorkingCopy
}

func (*DormantEdit) GetArgs

func (cmd *DormantEdit) GetArgs() []command.ArgGroup

GetArgs returns nil: dormant-edit pops args but ignores them with a warning.

func (DormantEdit) GetDescription

func (cmd DormantEdit) GetDescription() command.Description

func (DormantEdit) Run

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

type DormantRemove

type DormantRemove struct {
	command_components_dodder.LocalWorkingCopy
}

func (*DormantRemove) GetArgs

func (cmd *DormantRemove) GetArgs() []command.ArgGroup

func (DormantRemove) GetDescription

func (cmd DormantRemove) GetDescription() command.Description

func (DormantRemove) Run

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

type Edit

type Edit struct {
	command_components_dodder.LocalWorkingCopyWithQueryGroup

	// TODO-P3 add force
	command_components_dodder.Checkout
	CheckoutMode checkout_mode.Mode
	// contains filtered or unexported fields
}

func (*Edit) Complete

func (cmd *Edit) Complete(
	req command.Request,
	envLocal env_local.Env,
	commandLine command.CommandLineInput,
)

func (Edit) CompletionGenres

func (cmd Edit) CompletionGenres() ids.Genre

func (*Edit) GetArgs

func (cmd *Edit) GetArgs() []command.ArgGroup

func (Edit) GetDescription

func (cmd Edit) GetDescription() command.Description

func (Edit) Run

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

func (*Edit) SetFlagDefinitions

func (cmd *Edit) SetFlagDefinitions(flagSet interfaces.CLIFlagDefinitions)

type EditConfig

type EditConfig struct {
	command_components_dodder.LocalWorkingCopy
}

func (*EditConfig) GetArgs

func (cmd *EditConfig) GetArgs() []command.ArgGroup

GetArgs returns nil: edit-config pops args but ignores them with a warning.

func (EditConfig) GetDescription

func (cmd EditConfig) GetDescription() command.Description

func (EditConfig) Run

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

type Exec

func (*Exec) GetArgs

func (cmd *Exec) GetArgs() []command.ArgGroup

func (Exec) GetDescription

func (cmd Exec) GetDescription() command.Description

func (Exec) Run

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

type Export

func (*Export) GetArgs

func (cmd *Export) GetArgs() []command.ArgGroup

func (Export) GetDescription

func (cmd Export) GetDescription() command.Description

func (Export) Run

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

func (*Export) SetFlagDefinitions

func (cmd *Export) SetFlagDefinitions(f interfaces.CLIFlagDefinitions)

type FindMissing

type FindMissing struct {
	command_components_dodder.LocalWorkingCopy
}

func (*FindMissing) GetArgs

func (cmd *FindMissing) GetArgs() []command.ArgGroup

func (FindMissing) GetDescription

func (cmd FindMissing) GetDescription() command.Description

func (FindMissing) Run

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

type FormatBlob

type FormatBlob struct {
	command_components_dodder.LocalWorkingCopy

	Stdin    bool
	UTIGroup string
	// contains filtered or unexported fields
}

func (*FormatBlob) Complete

func (cmd *FormatBlob) Complete(
	req command.Request,
	envLocal env_local.Env,
	commandLine command.CommandLineInput,
)

func (*FormatBlob) FormatFromStdin

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

func (*FormatBlob) GetArgs

func (cmd *FormatBlob) GetArgs() []command.ArgGroup

func (FormatBlob) GetDescription

func (cmd FormatBlob) GetDescription() command.Description

func (*FormatBlob) Run

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

func (*FormatBlob) SetFlagDefinitions

func (cmd *FormatBlob) SetFlagDefinitions(f interfaces.CLIFlagDefinitions)

type FormatObject

type FormatObject struct {
	command_components_dodder.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 (cmd *FormatObject) FormatFromStdin(
	repo *local_working_copy.Repo,
	args ...string,
) (err error)

func (*FormatObject) GetArgs

func (cmd *FormatObject) GetArgs() []command.ArgGroup

func (FormatObject) GetDescription

func (cmd FormatObject) GetDescription() command.Description

func (*FormatObject) Run

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

func (*FormatObject) SetFlagDefinitions

func (cmd *FormatObject) SetFlagDefinitions(flagDefs interfaces.CLIFlagDefinitions)

type FormatOrganize

type FormatOrganize struct {
	command_components_dodder.LocalWorkingCopy

	Flags orgie.Flags
}

func (*FormatOrganize) GetArgs

func (cmd *FormatOrganize) GetArgs() []command.ArgGroup

func (FormatOrganize) GetDescription

func (cmd FormatOrganize) GetDescription() command.Description

func (*FormatOrganize) Run

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

func (*FormatOrganize) SetFlagDefinitions

func (cmd *FormatOrganize) SetFlagDefinitions(f interfaces.CLIFlagDefinitions)

type Fsck

TODO add options to verify type formats, tags TODO add option to count duplicate objects according to a list of object digest formats

func (*Fsck) GetArgs

func (cmd *Fsck) GetArgs() []command.ArgGroup

func (Fsck) GetDescription

func (cmd Fsck) GetDescription() command.Description

func (Fsck) Run

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

func (*Fsck) SetFlagDefinitions

func (cmd *Fsck) SetFlagDefinitions(flagSet interfaces.CLIFlagDefinitions)

type Gen

type Gen struct{}

func (*Gen) GetArgs

func (cmd *Gen) GetArgs() []command.ArgGroup

func (Gen) GetDescription

func (cmd Gen) GetDescription() command.Description

func (Gen) Run

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

func (Gen) SetFlagDefinitions

func (cmd Gen) SetFlagDefinitions(flagSet interfaces.CLIFlagDefinitions)

type GenerateZettelIdComponents

type GenerateZettelIdComponents struct{}

func (GenerateZettelIdComponents) GetDescription

func (cmd GenerateZettelIdComponents) GetDescription() command.Description

func (GenerateZettelIdComponents) Run

type Import

func (*Import) GetArgs

func (cmd *Import) GetArgs() []command.ArgGroup

func (Import) GetDescription

func (cmd Import) GetDescription() command.Description

func (Import) Run

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

func (*Import) SetFlagDefinitions

func (cmd *Import) SetFlagDefinitions(
	flagDefinitions interfaces.CLIFlagDefinitions,
)

type Info

type Info struct{}

func (*Info) GetArgs

func (cmd *Info) GetArgs() []command.ArgGroup

func (Info) GetDescription

func (cmd Info) GetDescription() command.Description

func (Info) Run

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

func (Info) SetFlagDefinitions

func (cmd Info) SetFlagDefinitions(
	flagSet interfaces.CLIFlagDefinitions,
)

type InfoPivyAgent

type InfoPivyAgent struct{}

func (*InfoPivyAgent) GetArgs

func (cmd *InfoPivyAgent) GetArgs() []command.ArgGroup

GetArgs returns nil: no positional arguments.

func (InfoPivyAgent) GetDescription

func (cmd InfoPivyAgent) GetDescription() command.Description

func (InfoPivyAgent) Run

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

type InfoRepo

type InfoRepo struct {
	command_components_dodder.EnvRepo
}

func (InfoRepo) Complete

func (cmd InfoRepo) Complete(
	req command.Request,
	envLocal env_local.Env,
	_ command.CommandLineInput,
)

func (*InfoRepo) GetArgs

func (cmd *InfoRepo) GetArgs() []command.ArgGroup

func (InfoRepo) GetDescription

func (cmd InfoRepo) GetDescription() command.Description

func (InfoRepo) Run

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

type InfoSSHAgent

type InfoSSHAgent struct{}

func (*InfoSSHAgent) GetArgs

func (cmd *InfoSSHAgent) GetArgs() []command.ArgGroup

GetArgs returns nil: no positional arguments.

func (InfoSSHAgent) GetDescription

func (cmd InfoSSHAgent) GetDescription() command.Description

func (InfoSSHAgent) Run

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

type InfoWorkspace

type InfoWorkspace struct {
	command_components_dodder.LocalWorkingCopy
}

TODO rename to WorkspaceInfo

func (InfoWorkspace) GetDescription

func (cmd InfoWorkspace) GetDescription() command.Description

func (InfoWorkspace) Run

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

type Init

type Init struct {
	command_components_dodder.Genesis
}

func (*Init) GetArgs

func (cmd *Init) GetArgs() []command.ArgGroup

func (Init) GetDescription

func (cmd Init) GetDescription() command.Description

func (*Init) Run

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

func (*Init) SetFlagDefinitions

func (cmd *Init) SetFlagDefinitions(flagSet interfaces.CLIFlagDefinitions)

type InitWorkspace

type InitWorkspace struct {
	command_components_dodder.Genesis
	repo.ImporterOptions
	command_components_dodder.Query

	ExperimentalRepo      bool
	ParentPath            string
	Haustoria             string
	EmitInventoryListPath string
	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.CommandLineInput,
)

func (*InitWorkspace) GetArgs

func (cmd *InitWorkspace) GetArgs() []command.ArgGroup

func (InitWorkspace) GetDescription

func (cmd InitWorkspace) GetDescription() command.Description

func (InitWorkspace) Run

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

func (*InitWorkspace) SetFlagDefinitions

func (cmd *InitWorkspace) SetFlagDefinitions(
	flagSet interfaces.CLIFlagDefinitions,
)

type InstallMcp

type InstallMcp struct{}

func (*InstallMcp) GetArgs

func (cmd *InstallMcp) GetArgs() []command.ArgGroup

GetArgs returns nil: no positional arguments.

func (InstallMcp) GetDescription

func (cmd InstallMcp) GetDescription() command.Description

func (InstallMcp) Run

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

type Last

func (Last) CompletionGenres

func (cmd Last) CompletionGenres() ids.Genre

func (Last) GetDescription

func (cmd Last) GetDescription() command.Description

func (Last) Run

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

func (*Last) SetFlagDefinitions

func (cmd *Last) SetFlagDefinitions(
	flagSet interfaces.CLIFlagDefinitions,
)

type Mcp

func (*Mcp) GetArgs

func (cmd *Mcp) GetArgs() []command.ArgGroup

GetArgs returns nil: no positional arguments.

func (Mcp) GetDescription

func (cmd Mcp) GetDescription() command.Description

func (Mcp) Run

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

type Mergetool

func (*Mergetool) GetArgs

func (cmd *Mergetool) GetArgs() []command.ArgGroup

func (Mergetool) GetDescription

func (cmd Mergetool) GetDescription() command.Description

func (Mergetool) Run

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

type MigrateConfigSeedKey added in v0.1.10

type MigrateConfigSeedKey struct {
	// contains filtered or unexported fields
}

func (*MigrateConfigSeedKey) GetArgs added in v0.1.10

func (cmd *MigrateConfigSeedKey) GetArgs() []command.ArgGroup

func (MigrateConfigSeedKey) GetDescription added in v0.1.10

func (cmd MigrateConfigSeedKey) GetDescription() command.Description

func (MigrateConfigSeedKey) Run added in v0.1.10

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

func (*MigrateConfigSeedKey) SetFlagDefinitions added in v0.1.10

func (cmd *MigrateConfigSeedKey) SetFlagDefinitions(
	flagSet interfaces.CLIFlagDefinitions,
)

type MigrateZettelIds

type MigrateZettelIds struct {
	command_components_dodder.LocalWorkingCopy
}

func (*MigrateZettelIds) GetArgs

func (cmd *MigrateZettelIds) GetArgs() []command.ArgGroup

GetArgs returns nil: no positional arguments.

func (MigrateZettelIds) GetDescription

func (cmd MigrateZettelIds) GetDescription() command.Description

func (MigrateZettelIds) Run

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

type New

type New struct {
	command_components_dodder.LocalWorkingCopy

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

	sku.Proto
	// contains filtered or unexported fields
}

func (*New) GetArgs

func (cmd *New) GetArgs() []command.ArgGroup

func (New) GetDescription

func (cmd New) GetDescription() command.Description

func (*New) Run

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

func (*New) SetFlagDefinitions

func (cmd *New) SetFlagDefinitions(flagSet interfaces.CLIFlagDefinitions)

func (New) ValidateFlagsAndArgs

func (cmd New) ValidateFlagsAndArgs(
	repo *local_working_copy.Repo,
	args ...string,
) (err error)

type Organize

type Organize struct {
	command_components_dodder.LocalWorkingCopy
	command_components_dodder.Query

	Flags orgie.Flags
	Mode  orgie_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.CommandLineInput,
)

func (*Organize) CompletionGenres

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

func (*Organize) GetArgs

func (cmd *Organize) GetArgs() []command.ArgGroup

func (Organize) GetDescription

func (cmd Organize) GetDescription() command.Description

func (*Organize) Run

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

func (*Organize) SetFlagDefinitions

func (cmd *Organize) SetFlagDefinitions(flagDef interfaces.CLIFlagDefinitions)

type PeekZettelIds

type PeekZettelIds struct {
	command_components_dodder.LocalWorkingCopy
}

func (*PeekZettelIds) GetArgs

func (cmd *PeekZettelIds) GetArgs() []command.ArgGroup

func (PeekZettelIds) GetDescription

func (cmd PeekZettelIds) GetDescription() command.Description

func (PeekZettelIds) Run

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

type Pull

func (*Pull) GetArgs

func (cmd *Pull) GetArgs() []command.ArgGroup

func (Pull) GetDescription

func (cmd Pull) GetDescription() command.Description

func (Pull) Run

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

func (*Pull) SetFlagDefinitions

func (cmd *Pull) SetFlagDefinitions(f interfaces.CLIFlagDefinitions)

type PullBlobStore

func (*PullBlobStore) GetArgs

func (cmd *PullBlobStore) GetArgs() []command.ArgGroup

func (PullBlobStore) GetDescription

func (cmd PullBlobStore) GetDescription() command.Description

func (*PullBlobStore) Run

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

func (*PullBlobStore) SetFlagDefinitions

func (cmd *PullBlobStore) SetFlagDefinitions(f interfaces.CLIFlagDefinitions)

type Push

func (*Push) GetArgs

func (cmd *Push) GetArgs() []command.ArgGroup

func (Push) GetDescription

func (cmd Push) GetDescription() command.Description

func (Push) Run

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

func (*Push) SetFlagDefinitions

func (cmd *Push) SetFlagDefinitions(flagSet interfaces.CLIFlagDefinitions)

type Reindex

func (*Reindex) GetArgs

func (cmd *Reindex) GetArgs() []command.ArgGroup

GetArgs returns nil: reindex explicitly rejects positional arguments.

func (Reindex) GetDescription

func (cmd Reindex) GetDescription() command.Description

func (Reindex) Run

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

type RemoteAdd

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

func (*RemoteAdd) GetArgs

func (cmd *RemoteAdd) GetArgs() []command.ArgGroup

func (RemoteAdd) GetDescription

func (cmd RemoteAdd) GetDescription() command.Description

func (RemoteAdd) Run

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

func (*RemoteAdd) SetFlagDefinitions

func (cmd *RemoteAdd) SetFlagDefinitions(flagSet interfaces.CLIFlagDefinitions)

type RepoFsck

func (RepoFsck) Complete

func (cmd RepoFsck) Complete(
	req command.Request,
	envLocal env_local.Env,
	commandLine command.CommandLineInput,
)

func (*RepoFsck) GetArgs

func (cmd *RepoFsck) GetArgs() []command.ArgGroup

GetArgs returns nil: no positional arguments.

func (RepoFsck) GetDescription

func (cmd RepoFsck) GetDescription() command.Description

func (RepoFsck) Run

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

type Revert

func (Revert) CompletionGenres

func (cmd Revert) CompletionGenres() ids.Genre

func (*Revert) GetArgs

func (cmd *Revert) GetArgs() []command.ArgGroup

func (Revert) GetDescription

func (cmd Revert) GetDescription() command.Description

func (Revert) Run

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

func (*Revert) SetFlagDefinitions

func (cmd *Revert) SetFlagDefinitions(f interfaces.CLIFlagDefinitions)

type Serve

type Serve struct {
	command_components.Env
	command_components_dodder.EnvRepo
	command_components_dodder.LocalWorkingCopy

	TailscaleTLS bool

	// Handshake enables the hashicorp/go-plugin-style handshake. When
	// set, the server forces tcp + ephemeral port, prints a single
	// pipe-delimited handshake line on stdout
	// ("1|1|tcp|127.0.0.1:PORT|dodder-http-v1") after binding, and
	// then begins serving. Diagnostic output is routed to stderr so
	// stdout stays a single-line protocol channel after the
	// handshake. Designed for harnesses (e.g. zz-tests_bats/
	// serve.bats per #150) that need to discover the OS-assigned port
	// without scraping log lines.
	Handshake bool
}

func (*Serve) GetArgs

func (cmd *Serve) GetArgs() []command.ArgGroup

func (Serve) GetDescription

func (cmd Serve) GetDescription() command.Description

func (Serve) Run

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

func (*Serve) SetFlagDefinitions

func (cmd *Serve) SetFlagDefinitions(
	flagSet interfaces.CLIFlagDefinitions,
)

type Show

func (Show) Complete

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

func (*Show) GetArgs

func (cmd *Show) GetArgs() []command.ArgGroup

func (Show) GetDescription

func (cmd Show) GetDescription() command.Description

func (Show) Run

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

func (*Show) SetFlagDefinitions

func (cmd *Show) SetFlagDefinitions(flagSet interfaces.CLIFlagDefinitions)

type Status

func (*Status) GetArgs

func (cmd *Status) GetArgs() []command.ArgGroup

func (Status) GetDescription

func (cmd Status) GetDescription() command.Description

func (Status) Run

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

type TomlBookmark

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

type Update

func (*Update) GetArgs

func (cmd *Update) GetArgs() []command.ArgGroup

func (Update) GetDescription

func (cmd Update) GetDescription() command.Description

func (Update) Run

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

func (*Update) SetFlagDefinitions

func (cmd *Update) SetFlagDefinitions(
	flagDefinitions interfaces.CLIFlagDefinitions,
)

type Version

type Version struct {
	// contains filtered or unexported fields
}

func (Version) GetDescription

func (cmd Version) GetDescription() command.Description

func (Version) Run

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

Source Files

  • add_zettel_ids.go
  • cat_alfred.go
  • cat_object.go
  • check_workspace.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
  • gen.go
  • generate_zettel_id_components.go
  • import.go
  • info.go
  • info_pivy_agent.go
  • info_repo.go
  • info_ssh_agent.go
  • info_workspace.go
  • init.go
  • init_workspace.go
  • install_mcp.go
  • konfig_edit.go
  • last.go
  • main.go
  • mcp.go
  • mergetool.go
  • migrate_config_seed_key.go
  • migrate_zettel_ids.go
  • new.go
  • organize.go
  • peek_zettel_ids.go
  • pull.go
  • pull_blob_store.go
  • push.go
  • reindex.go
  • remote_add.go
  • repo_fsck.go
  • revert.go
  • serve.go
  • show.go
  • status.go
  • update.go
  • usage.go
  • version.go

Jump to

Keyboard shortcuts

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