cli

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2026 License: MIT Imports: 33 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package cli assembles the cobra command tree for the vibexp CLI: the root command, its global flags, and the persistent pre-run that initializes logging and resolves the active context into the command context.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Execute

func Execute(ctx context.Context, args []string) int

Execute builds and runs the root command, returning the process exit code. The logger is closed before returning.

func NewRootCommand

func NewRootCommand(opts Options) *cobra.Command

NewRootCommand builds the full command tree.

Types

type Options

type Options struct {
	// Store overrides the config store (defaults to ~/.vibexp/config.yaml).
	Store *config.Store
	// CredStore overrides the credential store (defaults to
	// ~/.vibexp/credentials.json).
	CredStore *cred.Store
	// Getenv overrides environment lookups (defaults to os.Getenv).
	Getenv config.Getenv
	// LogDir overrides the log directory (defaults to ~/.vibexp/logs).
	LogDir string
}

Options tweak command-tree construction (primarily for tests).

Directories

Path Synopsis
Package apicmd implements `vibexp api` — an authenticated raw passthrough to any API endpoint (the gh-api-style escape hatch).
Package apicmd implements `vibexp api` — an authenticated raw passthrough to any API endpoint (the gh-api-style escape hatch).
Package artifactcmd implements `vibexp artifact` CRUD — the polished-output store, built on the shared resource scaffold (docs/adding-commands.md).
Package artifactcmd implements `vibexp artifact` CRUD — the polished-output store, built on the shared resource scaffold (docs/adding-commands.md).
Package attachmentcmd implements `vibexp attachment` — streamed multipart file upload plus list and delete.
Package attachmentcmd implements `vibexp attachment` — streamed multipart file upload plus list and delete.
Package authcmd implements `vibexp auth` — the API-key authentication path: login (--with-api-key), status, and logout.
Package authcmd implements `vibexp auth` — the API-key authentication path: login (--with-api-key), status, and logout.
Package blueprintcmd implements `vibexp blueprint` CRUD — the standing-rules primitive, built on the shared resource scaffold (docs/adding-commands.md).
Package blueprintcmd implements `vibexp blueprint` CRUD — the standing-rules primitive, built on the shared resource scaffold (docs/adding-commands.md).
Package configcmd implements `vibexp config` context-management subcommands: set-context, use-context, get-contexts, current-context.
Package configcmd implements `vibexp config` context-management subcommands: set-context, use-context, get-contexts, current-context.
Package feedcmd implements `vibexp feed` — the team-collaboration read/write loop (list feeds, read items + replies, post items, reply).
Package feedcmd implements `vibexp feed` — the team-collaboration read/write loop (list feeds, read items + replies, post items, reply).
Package memorycmd implements `vibexp memory` CRUD — the first full create/get/update/delete resource, built on the #9 scaffold (docs/adding-commands.md).
Package memorycmd implements `vibexp memory` CRUD — the first full create/get/update/delete resource, built on the #9 scaffold (docs/adding-commands.md).
Package metadatacmd implements `vibexp metadata keys|values` — discovery of the metadata keys/values a team actually uses, backing the --metadata filter on the artifact/blueprint/memory list commands (platform v0.9.0, epic #519).
Package metadatacmd implements `vibexp metadata keys|values` — discovery of the metadata keys/values a team actually uses, backing the --metadata filter on the artifact/blueprint/memory list commands (platform v0.9.0, epic #519).
Package projectcmd implements `vibexp project` (currently `project list`).
Package projectcmd implements `vibexp project` (currently `project list`).
Package promptcmd implements `vibexp prompt` CRUD plus `prompt render` — the reusable-prompt library, built on the shared resource scaffold (docs/adding-commands.md).
Package promptcmd implements `vibexp prompt` CRUD plus `prompt render` — the reusable-prompt library, built on the shared resource scaffold (docs/adding-commands.md).
Package relationcmd implements `vibexp relations` — curated commands for the typed resource-relations surface added in VibeXP platform v0.8.0.
Package relationcmd implements `vibexp relations` — curated commands for the typed resource-relations surface added in VibeXP platform v0.8.0.
Package resource holds the shared scaffolding every read/list command is built from: obtaining an authenticated client, fetching + error-mapping a raw JSON response, and rendering it through the output engine.
Package resource holds the shared scaffolding every read/list command is built from: obtaining an authenticated client, fetching + error-mapping a raw JSON response, and rendering it through the output engine.
Package searchcmd implements `vibexp search <query>` — team-scoped, semantic cross-resource search (prompts, artifacts, blueprints, memories).
Package searchcmd implements `vibexp search <query>` — team-scoped, semantic cross-resource search (prompts, artifacts, blueprints, memories).
Package statuscmd implements `vibexp status list|create|rename|delete` — the team's status catalog per resource type (platform v0.15.0, epic #1263).
Package statuscmd implements `vibexp status list|create|rename|delete` — the team's status catalog per resource type (platform v0.15.0, epic #1263).
Package teamcmd implements `vibexp team` (`team list`, `team audit`).
Package teamcmd implements `vibexp team` (`team list`, `team audit`).
Package updatecmd implements `vibexp update` — the explicit, checksum-verified self-update.
Package updatecmd implements `vibexp update` — the explicit, checksum-verified self-update.
Package usercmd implements `vibexp whoami`.
Package usercmd implements `vibexp whoami`.
Package versioncmd implements `vibexp version`.
Package versioncmd implements `vibexp version`.

Jump to

Keyboard shortcuts

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