tools

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2025 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Package tools provides the command to manage the development toolchain.

Index

Constants

This section is empty.

Variables

View Source
var ToolsCmd = &cobra.Command{
	Use:   "tools",
	Short: "Force rebuilds and installs development tools (fixes Nix version mismatch).",
	RunE: func(cmd *cobra.Command, _ []string) error {
		presenter := ui.NewPresenter(cmd.OutOrStdout(), cmd.ErrOrStderr())
		ctx := cmd.Context()

		runner := workflow.NewRunner(presenter, globals.AssumeYes)

		return runner.Run(
			ctx,
			"Updating Development Toolchain",
			&workflow.CheckGoEnvStep{
				ExecClient: globals.ExecClient,
				Presenter:  presenter,
			},
			&workflow.ConfigurePathStep{
				Presenter: presenter,
				AssumeYes: globals.AssumeYes,
			},
			&workflow.InstallGoToolsStep{
				ExecClient: globals.ExecClient,
				Presenter:  presenter,
			},
		)
	},
}

ToolsCmd represents the tools command.

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