root

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Mar 24, 2026 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Overview

Package root implements the ctx serve command.

It serves a static site locally by invoking zensical on the specified directory.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Cmd

func Cmd() *cobra.Command

Cmd returns the serve command.

Serves a static site by invoking zensical serve on the specified directory.

Returns:

  • *cobra.Command: The serve command

func Run

func Run(args []string) error

Run handles the serve command.

Parameters:

  • args: Optional directory to serve

Returns:

  • error: Non-nil if directory is invalid, config is missing, or zensical is not found

Types

This section is empty.

Jump to

Keyboard shortcuts

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