27 lines
758 B
Go
27 lines
758 B
Go
package help
|
|
|
|
import (
|
|
"bbash/environment"
|
|
"bbash/input_parser"
|
|
"fmt"
|
|
)
|
|
|
|
func Help(in input_parser.Input, _ *environment.Env) {
|
|
fmt.Print(`
|
|
Welcome to the bornagain bornagain shell!
|
|
The options are:
|
|
pwd: Output current working directory
|
|
echo: Echoes the input argument
|
|
ls: Lists Sources in the current working directory
|
|
cd: Change to directory given in the argument
|
|
man: Manual for the terminal options
|
|
cat: Outputs the contents of the given file
|
|
head: Outputs first lines of a given file. 10 if non provided. Argument <file> <number of lines>
|
|
touch: Creates the given file
|
|
rm: Removes the given file
|
|
cp: Copies the given file. Argument: <source> <destination>
|
|
mv: Moves a given file. Argument: <source> <destination>
|
|
help: Prints this message
|
|
`)
|
|
}
|