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: 8 Imported by: 0

Documentation

Overview

Package root implements the ctx doctor command.

It performs a structural health check on the .context/ directory, verifying required files, formatting, and configuration integrity.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Cmd

func Cmd() *cobra.Command

Cmd returns the "ctx doctor" command.

Flags:

  • --json, -j: Machine-readable JSON output

Returns:

  • *cobra.Command: Configured doctor command with flags registered

func Run

func Run(cmd *cobra.Command, jsonOutput bool) error

Run executes the doctor command logic, running all health checks and producing either JSON or human-readable output.

Parameters:

  • cmd: Cobra command for output stream
  • jsonOutput: If true, output as JSON

Returns:

  • error: Non-nil if output formatting fails

Types

This section is empty.

Jump to

Keyboard shortcuts

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