Commit Graph

13 Commits (master)

Author SHA1 Message Date
Chris Bednarski dfe047857d Fix panic when hostess is called with no arguments 4 years ago
Chris Bednarski fdfc2f9001 Update references to parsed CLI args to use zero-index because command is no longer in that slice 4 years ago
Chris Bednarski 168ef0ce47 Update to fmt -n (preview) behavior
- Fixing -n not being parsed by CLI
- fmt -n will error on any duplicates or conflicts
- fmt (without -n) will NOT error on duplicates; it will simply replace them
- fmt (without -n) WILL error on conflicts, since it does not know how to fix them
- fmt will exit 1 when an error state is reached
4 years ago
Chris Bednarski a343a8e07f Fix missing windows test case, fmt 4 years ago
Chris Bednarski c4e4f6d820 Removed -4 and -6 from CLI (these are still usable in the lib) 4 years ago
Chris Bednarski d3e97d1758 Fix argument parsing for CLI
Add tests for main and commands
Fix documentation for installation so the program works with sudo
4 years ago
Chris Bednarski 9c247955f6 go fmt 4 years ago
Chris Bednarski c53f06fdc8 Moved commands from commands package to root 4 years ago
Chris Bednarski 2b25df69d5 Remove trailing space 4 years ago
Chris Bednarski 7ca1771c71 More work on refactoring
- Reimplement the rest of the frontend code
- Remove -f option since this is just covered by fmt now
- Still some bugs left to work out
4 years ago
Chris Bednarski 66670942dd Started major refactor for 0.5.0
- Rewrite CLI to use flag package instead of codegangsta/cli
- Move lib to hostess/ and move main.go to project root
- Change some of the hostess API to return errors instead of panicking
- Remove aff, del, and list commands
- Remove -s and -q flags
4 years ago
Chris Bednarski 0bfec2ec96 Moved main.go to the cmd folder so it's in its own package 9 years ago
Chris Bednarski d809b75d3b Moved hostess functionality into hostess package, added tests 9 years ago