defineGroup()
defineGroup() defines metadata for a command group. Place the default export of this function in a _group.ts file inside a command directory.
import { defineGroup } from "@rune-cli/rune";
export default defineGroup({ description: "Manage projects",});Properties
Section titled “Properties”description
Section titled “description”- Type:
string - Required
A one-line summary shown in --help output when the group is invoked.
aliases
Section titled “aliases”- Type:
readonly string[] - Optional
Alternative names for this group. Each alias is an additional path segment that routes to this group. Aliases must follow kebab-case rules (lowercase letters, digits, and internal hyphens). The root group cannot have aliases.
examples
Section titled “examples”- Type:
readonly string[] - Optional
Usage examples shown in the Examples: section of --help output. Each entry is a string representing a full command invocation.