install

package
v0.11.0 Latest Latest
Warning

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

Go to latest
Published: Aug 10, 2026 License: MIT Imports: 12 Imported by: 0

Documentation

Overview

Package install diagnoses GitCode CLI installation sources and PATH conflicts.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCmdInstall

func NewCmdInstall(_ *cmdutil.Factory, version, commit, built string) *cobra.Command

NewCmdInstall creates the doctor install command.

Types

type CommandResolution

type CommandResolution struct {
	Selected   string   `json:"selected,omitempty"`
	Candidates []string `json:"candidates"`
}

CommandResolution describes how a command name resolves through PATH.

type Report

type Report struct {
	Version           string                       `json:"version"`
	Commit            string                       `json:"commit,omitempty"`
	Built             string                       `json:"built,omitempty"`
	Distribution      string                       `json:"distribution"`
	Entrypoint        string                       `json:"entrypoint"`
	Binary            string                       `json:"binary"`
	Commands          map[string]CommandResolution `json:"commands"`
	PowerShellGCAlias bool                         `json:"powershell_gc_alias"`
	Conflicts         []string                     `json:"conflicts"`
	Recommendations   []string                     `json:"recommendations"`
}

Report is the stable JSON contract for doctor install.

func Inspect

func Inspect(environ []string, goos, version, commit, built string) Report

Inspect builds an installation report. Empty version fields are filled by callers in production.

Source Files

  • install.go

Jump to

Keyboard shortcuts

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