local_working_copy

package
v0.0.0-...-ed7c31d Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2026 License: MIT Imports: 62 Imported by: 0

Documentation

Index

Constants

View Source
const (
	OptionsEmpty                = Options(iota)
	OptionsAllowConfigReadError = Options(1 << iota)
)

Variables

This section is empty.

Functions

func IsErrUnsupportedFormatterValue

func IsErrUnsupportedFormatterValue(err error) bool

func MakeErrUnsupportedFormatterValue

func MakeErrUnsupportedFormatterValue(
	formatValue string,
	g domain_interfaces.Genre,
) error

Types

type ErrUnsupportedFormatterValue

type ErrUnsupportedFormatterValue interface {
	error
	GetFormatValue() string
	domain_interfaces.GenreGetter
}

type FormatFlag

type FormatFlag struct {
	DefaultFormatter FormatFuncConstructorEntry
	// contains filtered or unexported fields
}

func (*FormatFlag) GetCLICompletion

func (formatFlag *FormatFlag) GetCLICompletion() map[string]string

func (*FormatFlag) GetName

func (formatFlag *FormatFlag) GetName() string

func (*FormatFlag) MakeFormatFunc

func (formatFlag *FormatFlag) MakeFormatFunc(
	repo *Repo,
	writer interfaces.WriterAndStringWriter,
) interfaces.FuncIter[*sku.Transacted]

func (*FormatFlag) Set

func (formatFlag *FormatFlag) Set(value string) (err error)

func (*FormatFlag) String

func (formatFlag *FormatFlag) String() string

func (*FormatFlag) WasSet

func (formatFlag *FormatFlag) WasSet() bool

type FormatFuncConstructor

type FormatFuncConstructor func(
	*Repo,

	interfaces.WriterAndStringWriter,
) interfaces.FuncIter[*sku.Transacted]

type FormatFuncConstructorEntry

type FormatFuncConstructorEntry struct {
	Name string

	FormatFuncConstructor
	// contains filtered or unexported fields
}

func GetFormatFuncConstructorEntry

func GetFormatFuncConstructorEntry(name string) FormatFuncConstructorEntry

type FormatTypeFuncConstructor

type FormatTypeFuncConstructor func(
	*Repo,
	type_blobs.Coder,
	interfaces.WriterAndStringWriter,
) interfaces.FuncIter[*sku.Transacted]

type FormatTypeFuncConstructorEntry

type FormatTypeFuncConstructorEntry struct {
	Name string

	FormatTypeFuncConstructor
	// contains filtered or unexported fields
}

type Options

type Options int

func (Options) GetAllowConfigReadError

func (o Options) GetAllowConfigReadError() bool

type OptionsGetter

type OptionsGetter interface {
	GetLocalRepoOptions() Options
}

type ParentNegotiatorFirstAncestor

type ParentNegotiatorFirstAncestor struct {
	Local, Remote repo.Repo
}

func (ParentNegotiatorFirstAncestor) FindBestCommonAncestor

func (parentNegotiator ParentNegotiatorFirstAncestor) FindBestCommonAncestor(
	conflicted sku.Conflicted,
) (ancestor *sku.Transacted, err error)

func (ParentNegotiatorFirstAncestor) GetParentNegotiator

func (parentNegotiator ParentNegotiatorFirstAncestor) GetParentNegotiator() sku.ParentNegotiator

type Repo

type Repo struct {
	DormantCounter queries.DormantCounter
	// contains filtered or unexported fields
}

func Genesis

func Genesis(
	bigBang env_repo.BigBang,
	envRepo env_repo.Env,
) (repo *Repo)

func Make

func Make(
	env env_local.Env,
	options Options,
) *Repo

func MakeWithEnvRepo

func MakeWithEnvRepo(
	options Options,
	envRepo env_repo.Env,
) (repo *Repo)

func (*Repo) ApplyToOrganizeOptions

func (local *Repo) ApplyToOrganizeOptions(oo *organize_text.Options)

func (*Repo) Checkin

func (local *Repo) Checkin(
	skus sku.SkuTypeSetMutable,
	proto sku.Proto,
	delete bool,
	refreshCheckout bool,
) (processed sku.TransactedMutableSet, err error)

func (*Repo) DeleteFiles

func (local *Repo) DeleteFiles(fs interfaces.Collection[*fd.FD]) (err error)

func (*Repo) Flush

func (local *Repo) Flush() (err error)

func (*Repo) GetAbbr

func (local *Repo) GetAbbr() sku.IdIndex

func (*Repo) GetBlobFormatter

func (local *Repo) GetBlobFormatter(
	typeLock objects.TypeLock,
	formatId string,
	utiGroup string,
) (blobFormatter script_config.RemoteScript, err error)

TODO add support for checked out types

func (*Repo) GetBlobStore

func (local *Repo) GetBlobStore() blob_stores.BlobStoreInitialized

func (*Repo) GetConfig

func (local *Repo) GetConfig() store_config.Config

func (*Repo) GetConfigPtr

func (local *Repo) GetConfigPtr() *store_config.Config

func (*Repo) GetConfigStore

func (local *Repo) GetConfigStore() store_config.Store

func (*Repo) GetConfigStoreMutable

func (local *Repo) GetConfigStoreMutable() store_config.StoreMutable

func (*Repo) GetDormantIndex

func (local *Repo) GetDormantIndex() *dormant_index.Index

func (*Repo) GetEnv

func (local *Repo) GetEnv() env_ui.Env

func (*Repo) GetEnvLocal

func (local *Repo) GetEnvLocal() env_local.Env

func (*Repo) GetEnvLua

func (local *Repo) GetEnvLua() env_lua.Env

func (*Repo) GetEnvRepo

func (local *Repo) GetEnvRepo() env_repo.Env

func (*Repo) GetEnvWorkspace

func (local *Repo) GetEnvWorkspace() env_workspace.Env

func (*Repo) GetImmutableConfigPrivate

func (local *Repo) GetImmutableConfigPrivate() genesis_configs.TypedConfigPrivate

func (*Repo) GetImmutableConfigPublic

func (local *Repo) GetImmutableConfigPublic() genesis_configs.ConfigPublic

func (*Repo) GetImmutableConfigPublicType

func (local *Repo) GetImmutableConfigPublicType() ids.TypeStruct

func (*Repo) GetInventoryListCoderCloset

func (local *Repo) GetInventoryListCoderCloset() inventory_list_coders.Closet

func (*Repo) GetInventoryListStore

func (local *Repo) GetInventoryListStore() sku.InventoryListStore

func (*Repo) GetMatcherDormant

func (local *Repo) GetMatcherDormant() queries.DormantCounter

func (*Repo) GetObjectFinalizer

func (local *Repo) GetObjectFinalizer() object_finalizer.Finalizer

func (*Repo) GetObjectFromObjectId

func (local *Repo) GetObjectFromObjectId(
	objectIdString string,
) (object *sku.Transacted, err error)

TODO add to repo.Repo interface

func (*Repo) GetObjectStore

func (local *Repo) GetObjectStore() sku.RepoStore

func (*Repo) GetStore

func (local *Repo) GetStore() *store.Store

func (*Repo) GetTime

func (local *Repo) GetTime() time.Time

func (*Repo) GetTypedBlobStore

func (local *Repo) GetTypedBlobStore() typed_blob_store.Stores

func (*Repo) GetWorkspaceConfig

func (local *Repo) GetWorkspaceConfig() workspace_config_blobs.Config

func (*Repo) GetWorkspaceStoreForQuery

func (local *Repo) GetWorkspaceStoreForQuery(
	repoId ids.RepoId,
) (store_workspace.Store, bool)

func (*Repo) GetZettelFromObjectId

func (local *Repo) GetZettelFromObjectId(
	objectIdString string,
) (object *sku.Transacted, err error)

TODO add to repo.Repo interface

func (*Repo) ImportSeq

func (local *Repo) ImportSeq(
	seq interfaces.SeqError[*sku.Transacted],
	importer repo.Importer,
) (err error)

func (*Repo) Lock

func (local *Repo) Lock() (err error)

func (*Repo) LockAndCommitOrganizeResults

func (local *Repo) LockAndCommitOrganizeResults(
	results organize_text.OrganizeResults,
) (changeResults organize_text.Changes, err error)

func (*Repo) MakeExternalQueryGroup

func (local *Repo) MakeExternalQueryGroup(
	metaBuilder queries.BuilderOption,
	externalQueryOptions sku.ExternalQueryOptions,
	args ...string,
) (queryGroup *queries.Query, err error)

func (*Repo) MakeImporter

func (local *Repo) MakeImporter(
	options repo.ImporterOptions,
	storeOptions sku.StoreOptions,
) repo.Importer

func (*Repo) MakeInventoryList

func (local *Repo) MakeInventoryList(
	query *queries.Query,
) (list *sku.HeapTransacted, err error)

func (*Repo) MakeOrganizeOptionsWithOrganizeMetadata

func (local *Repo) MakeOrganizeOptionsWithOrganizeMetadata(
	organizeFlags organize_text.Flags,
	metadata organize_text.Metadata,
) organize_text.Options

func (*Repo) MakeOrganizeOptionsWithQueryGroup

func (local *Repo) MakeOrganizeOptionsWithQueryGroup(
	organizeFlags organize_text.Flags,
	qg *queries.Query,
) organize_text.Options

func (*Repo) MakePrinterBoxArchive

func (local *Repo) MakePrinterBoxArchive(
	out interfaces.WriterAndStringWriter,
	includeTai bool,
) interfaces.FuncIter[*sku.Transacted]

func (*Repo) MakeQueryBuilder

func (local *Repo) MakeQueryBuilder(
	genress ids.Genre,
	options queries.BuilderOption,
) *queries.Builder

func (*Repo) MakeQueryBuilderExcludingHidden

func (local *Repo) MakeQueryBuilderExcludingHidden(
	genre ids.Genre,
	options queries.BuilderOption,
) *queries.Builder

func (*Repo) PrintMatchedDormantIfNecessary

func (local *Repo) PrintMatchedDormantIfNecessary()

func (*Repo) PrinterCheckedOutConflictsForRemoteTransfers

func (local *Repo) PrinterCheckedOutConflictsForRemoteTransfers() interfaces.FuncIter[*sku.CheckedOut]

func (*Repo) PrinterFDDeleted

func (local *Repo) PrinterFDDeleted() interfaces.FuncIter[*fd.FD]

TODO make generic external version

func (*Repo) PrinterHeader

func (local *Repo) PrinterHeader() interfaces.FuncIter[string]

func (*Repo) PrinterTransactedDeleted

func (local *Repo) PrinterTransactedDeleted() interfaces.FuncIter[*sku.CheckedOut]

TODO migrate to StringFormatWriterSkuBoxCheckedOut

func (*Repo) PullQueryGroupFromRemote

func (local *Repo) PullQueryGroupFromRemote(
	remote repo.Repo,
	qg *queries.Query,
	options repo.ImporterOptions,
) (err error)

func (*Repo) ReadObjectHistory

func (local *Repo) ReadObjectHistory(
	objectId *ids.ObjectId,
) (objects []*sku.Transacted, err error)

func (*Repo) Reindex

func (local *Repo) Reindex()

func (*Repo) Reset

func (local *Repo) Reset() (err error)

TODO investigate removing unnecessary resets like from organize

func (*Repo) Unlock

func (local *Repo) Unlock() (err error)

TODO print organize files that were created if dry run or make it possible to commit dry-run transactions

Source Files

  • accessors.go
  • actions.go
  • errors.go
  • format.go
  • format_type.go
  • genesis.go
  • local_op_pull.go
  • local_op_read_object_history.go
  • local_parent_negotiator.go
  • lock.go
  • main.go
  • op_checkin.go
  • op_get_blob_formatter.go
  • op_get_sku_from_object_id.go
  • op_import_list.go
  • op_make_importer.go
  • op_make_inventory_list.go
  • op_make_query_group.go
  • op_reindex.go
  • options.go
  • organize.go
  • printers.go
  • workspace_browser.go

Jump to

Keyboard shortcuts

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