cli

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Sep 24, 2026 License: MIT Imports: 23 Imported by: 0

Documentation

Overview

Bundles of markdown files in and out of Postgres, ported from 2de90d2:src/keepsake/cli/__init__.py.

Package cli is the operator commands, ported from 2de90d2:src/keepsake/cli/__init__.py.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EnvPort

func EnvPort() int

EnvPort is $KEEPSAKE_PORT, or 8000 for anything else, such as the service link kubelet injects.

func ExportBundle

func ExportBundle(ctx context.Context, cs *store.ConceptStore, tenant uuid.UUID, root string) (int, error)

ExportBundle writes the corpus out as a bundle, index and log included.

func ImportBundle

func ImportBundle(ctx context.Context, cs *store.ConceptStore, tenant uuid.UUID, root string) (int, error)

ImportBundle stores the whole bundle in one transaction, all or nothing.

func Main

func Main(args []string, stdout, stderr io.Writer) int

Main runs one command and returns its exit code.

func ValidateBundle

func ValidateBundle(root string) ([]string, error)

ValidateBundle returns every rule the bundle breaks: per-concept errors plus links to nothing.

Types

This section is empty.

Jump to

Keyboard shortcuts

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