Skip to content
This repository was archived by the owner on Dec 17, 2025. It is now read-only.

Commit 8a62cfc

Browse files
committed
Add config command
- Will improve display of installed artifacts and their scopes next - Added more featured skills
1 parent 893e9fb commit 8a62cfc

File tree

5 files changed

+509
-4
lines changed

5 files changed

+509
-4
lines changed

cmd/skills/main.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,7 @@ from remote Sleuth servers or Git repositories.`,
8686
rootCmd.AddCommand(commands.NewUpdateCommand())
8787
rootCmd.AddCommand(commands.NewReportUsageCommand())
8888
rootCmd.AddCommand(commands.NewServeCommand())
89+
rootCmd.AddCommand(commands.NewConfigCommand())
8990

9091
if err := rootCmd.Execute(); err != nil {
9192
os.Exit(1)

internal/artifacts/tracker.go

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,17 @@ type InstalledArtifacts struct {
2121
Version string `json:"version"`
2222
LockFileVersion string `json:"lockFileVersion"`
2323
InstalledAt time.Time `json:"installedAt"`
24+
Scope *TrackerScope `json:"scope,omitempty"` // Scope info for display purposes
2425
Artifacts []InstalledArtifact `json:"artifacts"`
2526
}
2627

28+
// TrackerScope stores scope information for display in config command
29+
type TrackerScope struct {
30+
Type string `json:"type"` // "global", "repository", or "path"
31+
RepoRoot string `json:"repoRoot,omitempty"` // Repository root path (if repo or path scoped)
32+
Path string `json:"path,omitempty"` // Specific path within repo (if path scoped)
33+
}
34+
2735
// InstalledArtifact represents a single installed artifact
2836
type InstalledArtifact struct {
2937
Name string `json:"name"`

0 commit comments

Comments
 (0)