Skip to content

stephen304/cmdfolder

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

CmdFolder GoDoc

CmdFolder is a wrapper around pseudo-terminal-go that allows the creation of mock terminal environments with "folders" that the user can cd into and "commands" that may reside in these folders.

Usage

func main() {
	folder := New()
	folder.AddCommand("do", dostuff)
	folder.Run()
}

func dostuff(_ string) {
	fmt.Println("STUFF GOT DID")
}
  • Note: subfolders haven't happened yet.

About

Because everybody needs command folders

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages