Documentation
¶
Overview ¶
Package install provides functionality for installing software tools and packages using mycli.
This package contains commands and utilities for managing the installation of various development tools and software packages required for setting up a development environment.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewInstallCmd ¶
InstallCmd creates and returns a cobra.Command for the 'install' subcommand of mycli.
The install command allows users to install various software tools and packages either interactively or via command-line arguments. It supports installation from different sources including package managers (e.g., Homebrew) and custom scripts.
Usage:
mycli install [flags] mycli install [tool-name] [flags]
Flags:
-c, --config string Path to the configuration file (default "~/.mycli/config.yaml") -f, --force Force reinstallation of already installed tools --non-interactive Run in non-interactive mode
The function sets up the command's flags, its Run function, and any subcommands. It uses the provided IOStreams for input/output operations.
Parameters:
- iostream: An iostreams.IOStreams instance for handling input/output operations.
Returns:
- *cobra.Command: A pointer to the created cobra.Command for the install subcommand.
Example:
// Creating the install command installCmd := install.InstallCmd(iostreams.System()) rootCmd.AddCommand(installCmd)
Types ¶
This section is empty.