plugin

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

Documentation

Overview

Package plugin enables and checks the ctx plugin in Claude Code settings and installed plugins configuration.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EnablePluginGlobally

func EnablePluginGlobally(cmd *cobra.Command) error

EnablePluginGlobally enables the ctx plugin in ~/.claude/settings.json.

Parameters:

  • cmd: Cobra command for output

Returns:

  • error: Non-nil if file operations fail

func EnabledGlobally

func EnabledGlobally() bool

EnabledGlobally reports whether the ctx plugin is enabled in ~/.claude/settings.json.

Returns:

  • bool: True if the plugin is listed under enabledPlugins

func EnabledLocally

func EnabledLocally() bool

EnabledLocally reports whether the ctx plugin is enabled in .claude/settings.local.json in the current project.

Returns:

  • bool: True if the plugin is listed under enabledPlugins locally

func Installed

func Installed() bool

Installed reports whether the ctx plugin is registered in ~/.claude/plugins/installed_plugins.json.

Returns:

  • bool: True if the plugin entry exists in the installed list

Types

This section is empty.

Jump to

Keyboard shortcuts

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