Fredric Silberberg 9b68953651 Merge branch 'bugfix/fix-df' into 'master' 4 years ago
cat Updated cat to use the new path searching algorithm 4 years ago
df Add df 4 years ago
free Added the PATH searching algorithm we talked about at the last meeting with Ciaraldi. It will find the location of our program and search the PATH for that location. If found, it will search all remaining elements for the requested program. If the location is not found on the PATH, then it will search the entire PATH for the requested program. If found, it returns the absolute path to the program. If not, err. 4 years ago
ls Modify ls to use our internal structure 4 years ago
ps Added the PATH searching algorithm we talked about at the last meeting with Ciaraldi. It will find the location of our program and search the PATH for that location. If found, it will search all remaining elements for the requested program. If the location is not found on the PATH, then it will search the entire PATH for the requested program. If found, it returns the absolute path to the program. If not, err. 4 years ago
.gitignore Updated the gitignore with emacs and go profiles 4 years ago
Makefile Removed extraneous tests 4 years ago
README.md Add 'free' to README 4 years ago
cat.go Go fmt 4 years ago
common.go Updated the printing to follow the new specs 4 years ago
common_test.go Fixed broken common test 4 years ago
files.go Modify ls to use our internal structure 4 years ago
filesystem.go Fix creating filesystem structure 4 years ago
filesystem_test.go Fix creating filesystem structure 4 years ago
free.go gofmt 4 years ago
process.go Made package more go-getable. 4 years ago
process_test.go Move FieldsN to utility file and add tests. 4 years ago
utils.go Fixed typo 4 years ago
utils_test.go Move FieldsN to utility file and add tests. 4 years ago

README.md

jsh

build status

An augmented Unix userland. Makes your core utility functions a bit cooler by adding a --json flag that makes everything output in nice, serialized JSON.

Assumptions

  • You have the following binaries (usually found in your distro’s coreutils packages)
    • /usr/bin/ps
    • /usr/bin/free
  • You have Go installed

We’re working on making it so that they don’t have to be in those directories.

Installing

  • git clone this directory
  • If you didn’t clone into your GOPATH, symlink the clone directory into $GOPATH/src

ps

  • $ go install jsh/ps
  • $ $GOPATH/bin/ps

You may want to prepend your path with $GOPATH/bin:

export PATH=$GOPATH/bin:$PATH

free

  • $ go install jsh/free
  • $ $GOPATH/bin/free