cmd

package
v0.1.5 Latest Latest
Warning

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

Go to latest
Published: Mar 1, 2026 License: MIT Imports: 11 Imported by: 0

Documentation

Overview

Package cmd implements the kwelea CLI subcommands using Cobra.

Three subcommands are registered on the root command:

  • build reads kwelea.toml, walks the docs directory, parses all Markdown files, and writes a self-contained static HTML site to the configured output directory.

  • serve runs the build pipeline then starts a local HTTP dev server with WebSocket live reload. The browser is opened automatically unless serve.open_browser = false in kwelea.toml.

  • init scaffolds a minimal kwelea.toml and a docs/index.md starter file in the current directory. It is a no-op if kwelea.toml already exists.

The package exports a single function, Execute, which is called by main.go to hand off control to Cobra.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Execute

func Execute(embeddedFS fs.FS, ver, commit, date string) error

Execute initialises the CLI with the embedded assets FS and runs the root command.

Types

This section is empty.

Jump to

Keyboard shortcuts

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