GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - unioslo/osp-cli-rs: The Rust implementation of osp: a plugin-driven CLI + REPL with layered config and consistent output rendering.

BranchesTags
Open more actions menu

Latest commit

 

History

1,127 Commits
1,127 Commits

Folders and files

NameName
Last commit message
Last commit date
.cargo
.cargo
 
 
.githooks
.githooks
 
 
.github/workflows
.github/workflows
 
 
docs
docs
 
 
examples
examples
 
 
perf
perf
 
 
scripts
scripts
 
 
src
src
 
 
tests
tests
 
 
.coverage-baseline.json
.coverage-baseline.json
 
 
.gitignore
.gitignore
 
 
.gitmessage
.gitmessage
 
 
.public-api-examples.txt
.public-api-examples.txt
 
 
.release-budget.json
.release-budget.json
 
 
AGENTS.md
AGENTS.md
 
 
CHANGELOG.md
CHANGELOG.md
 
 
CONTRIBUTING.md
CONTRIBUTING.md
 
 
Cargo.lock
Cargo.lock
 
 
Cargo.toml
Cargo.toml
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
justfile
justfile
 
 
rust-toolchain.toml
rust-toolchain.toml
 
 

Repository files navigation

Verify Release Crates.io Docs.rs

osp-cli

osp-cli screenshot

osp-cli is a Rust command-line tool and interactive REPL for working with structured data.

You can also use it as a library to build a CLI with your own commands, defaults, and integrations.

It combines:

  • command execution
  • interactive history, completion, and help
  • layered configuration
  • multiple render modes and output formats
  • a small pipeline DSL
  • external command plugins

Use it as:

  • a normal command-line tool
  • a long-running REPL with history, completion, inline help, and cached results
  • a library for a site-specific CLI

As A Library

To build your own CLI with osp-cli, start with:

  • docs/EMBEDDING.md
  • docs/README.md
  • src/lib.rs

Install

From crates.io:

cargo install osp-cli --locked

From source:

cargo install --path . --locked

Run it:

osp --help
osp

Quick Start

CLI:

osp config show
osp theme list
osp plugins list

REPL:

osp> plugins list
osp> plugins list | P name about
osp> config explain ui.format
osp> help config

While you type in the REPL:

  • Tab completes like a shell: a single match or the shared prefix first, then a menu of choices with their descriptions
  • muted text after the cursor suggests the rest of the line from history or the command tree; Right or End accepts it, Ctrl-Right cycles history choices, and repl.autosuggest=false hides it
  • the line under the prompt explains the current command or flag, lists missing required flags, and names unknown words, which are shown in red
  • repl.complete_on lists typing triggers: flag (default), space, and after_<n>_letters; an empty list leaves Tab and Ctrl-Space

See docs/COMPLETION.md.

Per-invocation flags work the same in the CLI and REPL:

osp plugins list --json
osp plugins list --format table -v
plugins list --json
plugins list --format table -v

Capabilities

  • CLI and REPL entrypoints with shared command semantics
  • history, shell-style completion, inline suggestions, a status line, and error highlighting in the REPL, plus scoped shells
  • invocation-local output and debug controls
  • output formats including table, JSON, markdown, mreg, and value
  • a row-oriented pipeline DSL for filtering, projection, grouping, sorting, aggregation, and quick search
  • profile-aware config with file, env, secrets, CLI, and REPL-session layering
  • theming, color policy, unicode policy, and presentation presets
  • plugin discovery and dispatch through a JSON subprocess protocol

Configuration And Output

Default paths:

  • config: <platform-config-dir>/osp/config.toml (for example ~/.config/osp/config.toml on Linux)
  • secrets: <platform-config-dir>/osp/secrets.toml (for example ~/.config/osp/secrets.toml on Linux)

On Linux, XDG_CONFIG_HOME overrides the base config directory when set.

Invocation flags such as --json, --format, --color, -v, -q, and -d affect only the current command. They do not mutate stored config.

See:

  • docs/CONFIG.md
  • docs/FORMATTING.md
  • docs/REPL.md

Plugins

Drop an executable named osp-NAME on PATH or in a plugin directory. It runs as osp NAME; optional metadata adds JSON rendering and completion.

See:

  • docs/PLUGINS.md
  • docs/AUTH.md

Documentation

Start with:

  • docs/README.md

If you are just using osp, read these first:

  • docs/GETTING_STARTED.md
  • docs/COOKBOOK.md
  • docs/TROUBLESHOOTING.md

Core operator guides:

  • docs/REPL.md
  • docs/CONFIG.md
  • docs/FORMATTING.md
  • docs/DSL.md
  • docs/PLUGINS.md

If you are building a product wrapper on top of osp-cli, read these:

  • docs/EMBEDDING.md

If you are writing plugin executables or other extension-side integrations, read these:

  • docs/PLUGINS.md

If you are working on the repo itself, read:

  • CONTRIBUTING.md

Development

Useful commands:

python3 scripts/confidence.py --list
python3 scripts/confidence.py local

See:

  • CONTRIBUTING.md
  • docs/TESTING.md

License

GPLv3

About

The Rust implementation of osp: a plugin-driven CLI + REPL with layered config and consistent output rendering.

Resources

Readme
GPL-3.0 license

Contributing

Contributing
Activity
Custom properties

Stars

9 stars

Watchers

0 watching

Forks

2 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.