commandpath

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jul 14, 2026 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

Package commandpath is the single source of truth for where each tool's owned commands are linked, as a function of the install scope. It parallels skillpath; a future change may unify both into a resourcepath.Dir(kind, …). Scope flipping (for inactive-scope pruning) reuses skillpath.Other, so this package exposes only Dir.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Dir

func Dir(tool, scope, home, projectRoot string) string

Dir returns the directory a tool's owned commands are linked into.

claude   + user     -> <home>/.claude/commands
claude   + project  -> <projectRoot>/.claude/commands
opencode + user     -> <home>/.config/opencode/command
opencode + project  -> <projectRoot>/.opencode/command

OpenCode uses the SINGULAR "command" directory (unlike its plural "skills"). Any scope other than "project" is treated as "user". An unknown tool returns "".

Types

This section is empty.

Jump to

Keyboard shortcuts

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