config

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Sep 27, 2025 License: BSD-2-Clause Imports: 4 Imported by: 0

Documentation

Overview

*

  • Copyright © 2025 Magdiel Campelo <github.com/MagdielCAS/magi-cli>
  • This file is part of the magi-cli

*

*

  • Copyright © 2025 Magdiel Campelo <github.com/MagdielCAS/magi-cli>
  • This file is part of the magi-cli

*

*

  • Copyright © 2025 Magdiel Campelo <github.com/MagdielCAS/magi-cli>
  • This file is part of the magi-cli

*

*

  • Copyright © 2025 Magdiel Campelo <github.com/MagdielCAS/magi-cli>
  • This file is part of the magi-cli

*

Index

Constants

This section is empty.

Variables

View Source
var GetCmd = &cobra.Command{
	Use:   "get [key]",
	Short: "Gets a configuration value",
	Long: `Gets a configuration value.

Usage:
  magi config get [key]

Examples:
  # Get the value of a key
  magi config get api.model

Run 'magi config get --help' for more information on a specific command.`,
	Args: cobra.ExactArgs(1),
	Run:  runGet,
}
View Source
var ListCmd = &cobra.Command{
	Use:   "list",
	Short: "Lists all configuration values",
	Long: `Lists all configuration values.

Usage:
  magi config list

Examples:
  # List all values
  magi config list

Run 'magi config list --help' for more information on a specific command.`,
	Run: runList,
}
View Source
var ResetCmd = &cobra.Command{
	Use:   "reset",
	Short: "Resets the configuration",
	Long: `Resets the configuration to its default values.

Usage:
  magi config reset

Examples:
  # Reset the configuration
  magi config reset

Run 'magi config reset --help' for more information on a specific command.`,
	Run: runReset,
}
View Source
var SetCmd = &cobra.Command{
	Use:   "set [key] [value]",
	Short: "Sets a configuration value",
	Long: `Sets a configuration value.

Usage:
  magi config set [key] [value]

Examples:
  # Set the value of a key
  magi config set api.model gpt-4

Run 'magi config set --help' for more information on a specific command.`,
	Args: cobra.ExactArgs(2),
	Run:  runSet,
}

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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