sessioncmd

package
v1.5.35 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2026 License: MIT Imports: 5 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 sessioncmd implements the `golder session` subcommand family (issue #570): sharing persisted sessions from the command line, without entering the REPL. It dispatches early in cmd/golder, the same way the package-management subcommands do.

golder session export <id> [--format md|json|html] [--output path]
                         [--no-redact] [--include-system-prompt]
golder session repair <id>

The Markdown format is the shareable default: credential-shaped strings are redacted (default on) and the system prompt is dropped (opt-in with --include-system-prompt). JSONL stays the lossless resumable archive and rejects redaction; HTML is the self-contained transcript. Upload or publication of the produced file (e.g. to a dataset host) is deliberately out of scope — pipe the file to the tool of your choice.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run(cmd string, args []string, out, errOut io.Writer) int

Run executes a session subcommand (cmd) with arguments (args), writing output to out and errors to errOut. It returns a process exit code.

Types

This section is empty.

Jump to

Keyboard shortcuts

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