command

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Feb 8, 2026 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package command provides slash command parsing and validation.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InferName

func InferName(path string) string

InferName derives a command name from a file path. It extracts the filename and strips the .md extension.

Transformation rules:

  • review.md -> review
  • my-command.md -> my-command (case preserved)
  • /path/to/review.md -> review (path stripped)
  • review -> review (no extension = unchanged)
  • file.test.md -> file.test (only .md stripped)

Types

This section is empty.

Directories

Path Synopsis
Package parser provides command file parsing functionality.
Package parser provides command file parsing functionality.
Package validator provides validation for command structs.
Package validator provides validation for command structs.

Jump to

Keyboard shortcuts

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