permission

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

Documentation

Overview

Package permission implements the "ctx permission" command for managing Claude Code permission snapshots.

The permission package provides subcommands to:

  • snapshot: Save settings.local.json as a golden image
  • restore: Reset settings.local.json from the golden image

Golden images allow teams to maintain a curated permission baseline and automatically drop session-accumulated permissions at session start.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Cmd

func Cmd() *cobra.Command

Cmd returns the permission command with subcommands.

The permission command provides utilities for managing Claude Code permission snapshots:

  • snapshot: Save settings.local.json as a golden image
  • restore: Reset settings.local.json from the golden image

Returns:

  • *cobra.Command: Configured permission command with subcommands

Types

This section is empty.

Directories

Path Synopsis
cmd
restore
Package restore implements the ctx permission restore subcommand.
Package restore implements the ctx permission restore subcommand.
snapshot
Package snapshot implements the ctx permission snapshot subcommand.
Package snapshot implements the ctx permission snapshot subcommand.
Package core provides shared helpers used by permissions subcommand packages.
Package core provides shared helpers used by permissions subcommand packages.

Jump to

Keyboard shortcuts

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