shutil

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Jan 21, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Package shutil provides shell command utilities.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GoList

func GoList() (string, error)

GoList returns the output of 'go list ./...'.

func GoModGraph

func GoModGraph() (string, error)

GoModGraph returns the output of 'go mod graph'.

func IsHelp added in v0.0.16

func IsHelp() bool

IsHelp checks if the last argument is --help or -h.

func MustRun

func MustRun(args ...string) string

MustRun executes a shell command and panics on error.

func Run

func Run(args ...string) (string, error)

Run executes a shell command and returns the output.

func Shell

func Shell(args ...string) *exec.Cmd

Shell creates an exec.Cmd for the given shell command.

Types

This section is empty.

Jump to

Keyboard shortcuts

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