cli

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2026 License: MIT Imports: 2 Imported by: ? 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 runs mweave with the built-in source catalog.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type App

type App = cliapp.App

func New

func New(sources ...Source) (*App, error)

New constructs a CLI with the built-in sources and the supplied extensions.

type PreparedSource

type PreparedSource = cliapp.PreparedSource

type Prompt

type Prompt = cliapp.Prompt

type Source

type Source = cliapp.Source

func NewSource

func NewSource[T any](id, label string, prompt func(*T, Prompt) error, prepare func(T, string) (PreparedSource, error)) (Source, error)

NewSource registers a custom source for the CLI.

Directories

Path Synopsis
Package host runs mweave with the sources chosen by the caller.
Package host runs mweave with the sources chosen by the caller.
source
local
Package local supplies the Local directory source for explicit CLI builds.
Package local supplies the Local directory source for explicit CLI builds.
webdav
Package webdav supplies the WebDAV collection source for explicit CLI builds.
Package webdav supplies the WebDAV collection source for explicit CLI builds.

Jump to

Keyboard shortcuts

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