Documentation ¶
Index ¶
- func UnmarshalEntities[TEntity any](cli *Cli, args []string, format string) (entities []*TEntity, err error)
- type Cli
- type CliOption
- func WithAll() CliOption
- func WithBNTPBackend() CliOption
- func WithBookmarkCommand() CliOption
- func WithBookmarkTypeCommand() CliOption
- func WithConfigCommand() CliOption
- func WithConfigManager() CliOption
- func WithDbOverride(dbToUse *sql.DB) CliOption
- func WithDocumentCommand() CliOption
- func WithDocumentTypeCommand() CliOption
- func WithFsOverride(fsToUse afero.Fs) CliOption
- func WithStdErrOverride(stderrToUse io.Writer) CliOption
- func WithTagCommand() CliOption
- type ConflictingPositionalArgsAndFlagError
- type Count
- type DoesExist
- type EntityMarshallingError
- type NumAffectedRecords
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Cli ¶ added in v0.6.0
type Cli struct { ConfigManager *config.ConfigManager BNTPBackend *backend.Backend InFormat string OutFormat string FilterRaw string UpdaterRaw string PathFormat bool ShortFormat bool DebugMode bool StdErr io.Writer DBOverride *sql.DB Logger *log.Logger FsOverride afero.Fs Fs afero.Fs BookmarkAddCmd *cobra.Command BookmarkCmd *cobra.Command BookmarkCountCmd *cobra.Command BookmarkDoesExistCmd *cobra.Command BookmarkEditCmd *cobra.Command BookmarkFindCmd *cobra.Command BookmarkListCmd *cobra.Command BookmarkRemoveCmd *cobra.Command BookmarkReplaceCmd *cobra.Command BookmarkTypeAddCmd *cobra.Command BookmarkTypeCmd *cobra.Command BookmarkTypeEditCmd *cobra.Command BookmarkTypeRemoveCmd *cobra.Command BookmarkTypeListCmd *cobra.Command BookmarkUpsertCmd *cobra.Command ConfigCmd *cobra.Command ConfigExtensionsCmd *cobra.Command ConfigPathsCmd *cobra.Command DocumentAddCmd *cobra.Command DocumentCmd *cobra.Command DocumentCountCmd *cobra.Command DocumentDoesExistCmd *cobra.Command DocumentEditCmd *cobra.Command DocumentFindCmd *cobra.Command DocumentListCmd *cobra.Command DocumentRemoveCmd *cobra.Command DocumentReplaceCmd *cobra.Command DocumentTypeAddCmd *cobra.Command DocumentTypeCmd *cobra.Command DocumentTypeEditCmd *cobra.Command DocumentTypeRemoveCmd *cobra.Command DocumentTypeListCmd *cobra.Command DocumentUpsertCmd *cobra.Command RootCmd *cobra.Command TagAddCmd *cobra.Command TagAmbiguousCmd *cobra.Command TagCmd *cobra.Command TagCountCmd *cobra.Command TagDoesExistCmd *cobra.Command TagEditCmd *cobra.Command TagExportCmd *cobra.Command TagFindCmd *cobra.Command TagImportCmd *cobra.Command TagListCmd *cobra.Command TagRemoveCmd *cobra.Command TagReplaceCmd *cobra.Command TagShortCmd *cobra.Command TagUpsertCmd *cobra.Command // contains filtered or unexported fields }
type CliOption ¶ added in v0.6.0
type CliOption func(*Cli)
func WithBNTPBackend ¶ added in v0.6.0
func WithBNTPBackend() CliOption
func WithBookmarkCommand ¶ added in v0.6.0
func WithBookmarkCommand() CliOption
func WithBookmarkTypeCommand ¶ added in v0.6.0
func WithBookmarkTypeCommand() CliOption
func WithConfigCommand ¶ added in v0.6.0
func WithConfigCommand() CliOption
func WithConfigManager ¶ added in v0.6.0
func WithConfigManager() CliOption
func WithDbOverride ¶ added in v0.6.0
func WithDocumentCommand ¶ added in v0.6.0
func WithDocumentCommand() CliOption
func WithDocumentTypeCommand ¶ added in v0.6.0
func WithDocumentTypeCommand() CliOption
func WithFsOverride ¶ added in v0.6.0
func WithStdErrOverride ¶ added in v0.6.0
func WithTagCommand ¶ added in v0.6.0
func WithTagCommand() CliOption
type ConflictingPositionalArgsAndFlagError ¶ added in v0.6.0
type ConflictingPositionalArgsAndFlagError struct {
Flag string
}
func (ConflictingPositionalArgsAndFlagError) As ¶ added in v0.6.0
func (err ConflictingPositionalArgsAndFlagError) As(target any) bool
func (ConflictingPositionalArgsAndFlagError) Error ¶ added in v0.6.0
func (err ConflictingPositionalArgsAndFlagError) Error() string
func (ConflictingPositionalArgsAndFlagError) Is ¶ added in v0.6.0
func (err ConflictingPositionalArgsAndFlagError) Is(other error) bool
type EntityMarshallingError ¶ added in v0.6.0
type EntityMarshallingError struct {
Inner error
}
func (EntityMarshallingError) As ¶ added in v0.6.0
func (err EntityMarshallingError) As(target any) bool
func (EntityMarshallingError) Error ¶ added in v0.6.0
func (err EntityMarshallingError) Error() string
func (EntityMarshallingError) Is ¶ added in v0.6.0
func (err EntityMarshallingError) Is(other error) bool
func (EntityMarshallingError) Unwrap ¶ added in v0.6.0
func (err EntityMarshallingError) Unwrap() error
type NumAffectedRecords ¶ added in v0.6.0
type NumAffectedRecords struct {
NumAffectedRecords int64 `json:"numAffectedRecords"`
}
Click to show internal directories.
Click to hide internal directories.