switchcmd

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

Documentation

Overview

Package switchcmd implements the ctx config switch subcommand.

It switches the active .ctxrc configuration between dev and base profiles.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Cmd

func Cmd() *cobra.Command

Cmd returns the "ctx config switch" subcommand.

Returns:

  • *cobra.Command: Configured switch subcommand

func Run

func Run(cmd *cobra.Command, root string, args []string) error

Run executes the profile switch logic.

Parameters:

  • cmd: Cobra command for output
  • root: Git repository root directory
  • args: Optional profile name (dev, base, or prod alias)

Returns:

  • error: Non-nil on unknown profile or copy failure

Types

This section is empty.

Jump to

Keyboard shortcuts

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