gsh

package module
v0.0.0-...-3cac22c Latest Latest
Warning

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

Go to latest
Published: Feb 15, 2024 License: Apache-2.0 Imports: 4 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

Go+ DevOps Tools

Build Status Language GitHub release Discord GoDoc

This is a DEMO project to implement a new Go+ ClassFile work.

Please Go to https://github.com/xushiwei/gshexample to see how to use it.

Documentation

Index

Constants

View Source
const GopPackage = true

Variables

This section is empty.

Functions

func Gopt_App_Main

func Gopt_App_Main(a interface {
	initApp()
})

Types

type App

type App struct {
	// contains filtered or unexported fields
}

App is project class of this classfile.

func (*App) Capout

func (p *App) Capout(doSth func()) (string, error)

Capout captures stdout of doSth() execution and save it to output.

func (*App) Gop_Exec

func (p *App) Gop_Exec(name string, args ...string) error

Gop_Exec executes a shell command.

func (*App) LastErr

func (p *App) LastErr() error

LastErr returns error of last command execution.

func (*App) Output

func (p *App) Output() string

Output returns result of last capout.

Directories

Path Synopsis
examples
hello command

Jump to

Keyboard shortcuts

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