Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var InteractiveCmd = &cobra.Command{ Use: "interactive", Short: "Start an interactive mode for repository operations", Run: func(cmd *cobra.Command, args []string) { fmt.Println("Entering SST CLI tool in interactive mode. Type 'q' to quit, 'help' to see available commands.") StartInteractiveMode() }, }
interactiveCmd starts an interactive mode
Functions ¶
func NewCompleter ¶
func NewCompleter() readline.AutoCompleter
NewCompleter creates and returns a new sstCompleter instance
func StartInteractiveMode ¶
func StartInteractiveMode()
StartInteractiveMode starts the interactive command loop
Types ¶
type InteractiveConfig ¶
type InteractiveConfig struct {
// --- Repositories ---
Repositories map[string]sst.Repository // repoAlias -> Repository
RepositoryLocations map[string]string // repoAlias -> local path or remote URL
RepositoryTypes map[string]string // repoAlias -> "local" | "localflat" | "remote"
RepositoryAliases []string
// --- SuperRepositories ---
SuperRepositories map[string]sst.SuperRepository // superRepoAlias -> SuperRepository
SuperRepositoryLocations map[string]string // superRepoAlias -> local path or remote URL
SuperRepositoryTypes map[string]string // superRepoAlias -> "local" | "remote"
SuperRepositoryAliases []string
// --- Datasets ---
Datasets map[string]sst.Dataset
DatasetAliases []string
// --- Stages ---
Stages map[string]sst.Stage // stageAlias -> Stage
StageBranches map[string]string // stageAlias -> branch name (e.g. "master")
StageCommits map[string]sst.Hash // stageAlias -> commit hash
StageSources map[string]string // stageAlias -> source file path (for rdfread/imported stages)
StageAliases []string
// --- NamedGraphs ---
NamedGraphs map[string]sst.NamedGraph // namedgraphAlias -> NamedGraph
NamedGraphAliases []string
// --- IBNodes ---
IBNodes map[string]sst.IBNode // ibNodeAlias -> IBNode
IBNodeAliases []string
// --- Auth ---
SuperAuthContexts map[string]context.Context // superAlias -> AuthContext
AuthContexts map[sst.Repository]context.Context // repo -> AuthContext
}
type RepoWithDB ¶
type RepoWithDB interface {
sst.Repository
DB() *bbolt.DB
}
Click to show internal directories.
Click to hide internal directories.