install

package
v0.4.4 Latest Latest
Warning

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

Go to latest
Published: Jul 16, 2024 License: MIT Imports: 12 Imported by: 0

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

func NewInstallCmd(iostream *iostreams.IOStreams) *cobra.Command

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.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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