Categorygithub.com/YuranIgnatenko/CtrlCmd
repository
0.1.0
Repository: https://github.com/yuranignatenko/ctrlcmd.git
Documentation: pkg.go.dev

# Packages

No description provided by the author

# README

CtrlCmd

Control output and input terminal from golang

program - this easy !


Install

go get -u github.com/YuranIgnatenko/CtrlCmd/ctrlCmd

Use

package main

import (
	cmd "github.com/YuranIgnatenko/CtrlCmd/ctrlCmd"
	"time"
)

func main() {
    // send command and prind result
    cmd.Line("clear")
}

If output print color text

cmd.LineColor("hello", "red", "bg")
cmd.LineColor("hello", "green", "bg")

If need get output and save var

result := cmd.LineGet("ls")