Chris Bednarski
187298f216
Change format switch from 'linux' to 'unix' to match the readme
4 years ago
Chris Bednarski
4f4dd46d6f
Merge branch 'master' of https://github.com/cbednarski/hostess
4 years ago
Chris Bednarski
dfe047857d
Fix panic when hostess is called with no arguments
4 years ago
Chris Bednarski
f0fc63817f
Added changes to the changelog
4 years ago
Chris Bednarski
71f910ca52
Added changes to the changelog
4 years ago
Chris Bednarski
b5e6f45648
Added windows-specific expected test output for ExitCodeFmt test
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
e56fc7aec0
Updated changelog
4 years ago
Chris Bednarski
e899791fce
Don't fail when a duplicate is encountered ( fixes #39 )
4 years ago
Chris Bednarski
0e15ef497a
Added test for issue #39
4 years ago
Chris Bednarski
ebbdf23b34
Ignore .DS_Store files
4 years ago
Chris Bednarski
4fc0ac9077
Merge pull request #38 from chenrui333/update-travis
...
Minor update on travis config
4 years ago
Chris Bednarski
d60ff45bf8
Updated changelog for windows hosts format
4 years ago
Chris Bednarski
a343a8e07f
Fix missing windows test case, fmt
4 years ago
Chris Bednarski
aecfa8f689
Added windows-specific hostfile format, and tests
4 years ago
Chris Bednarski
c4e4f6d820
Removed -4 and -6 from CLI (these are still usable in the lib)
4 years ago
Rui Chen
7fbd6215e8
Minor update on travis config
4 years ago
Chris Bednarski
138ef9dcd4
Added changelog for 0.4.1
4 years ago
Chris Bednarski
1e2456bc6a
Added a note about sudo and Windows Admin prompt
4 years ago
Chris Bednarski
df2d795268
Fix hostfile.Save() on Windows
4 years ago
Chris Bednarski
be9a630ae8
0.4.0 release notes
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
127256655c
Not doing 0.5.0 yet.
4 years ago
Chris Bednarski
ca1856f5fe
Added changelog
4 years ago
Chris Bednarski
9c247955f6
go fmt
4 years ago
Chris Bednarski
ba102742d4
Added contributor section
4 years ago
Chris Bednarski
960732bbb4
Be nice to Travis and just use a pre-baked version
4 years ago
Chris Bednarski
dd746035f7
Add appveyor config, changelog, README TLC, and update TravisCI Go to 1.14
4 years ago
Chris Bednarski
18546969ce
Added package comment
4 years ago
Chris Bednarski
c53f06fdc8
Moved commands from commands package to root
4 years ago
Chris Bednarski
000eb28419
Clean up makefile
4 years ago
Chris Bednarski
2b25df69d5
Remove trailing space
4 years ago
Chris Bednarski
b9940cf499
Cleaned up gitignore because we're not using all that stuff anymore
4 years ago
Chris Bednarski
26a3d25daf
Add the library back. oops.
4 years ago
Chris Bednarski
ddad9598d6
Added release target to Makefile
4 years ago
Chris Bednarski
aeb56f8a79
Ignore bin folder
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
4c91c57875
Update to canonical golint import path, closes #35 Thanks Mateusz Kubuszok!
5 years ago
Chris Bednarski
017b8f33a4
Merge pull request #32 from alswl/master
...
fix: spelling
6 years ago
alswl
6426b1e7c6
fix: spelling
6 years ago
Chris Bednarski
4f98a9f9bd
Bump version to 0.3.0
6 years ago
Chris Bednarski
1e3afd46c3
Fix example test error
6 years ago
Chris Bednarski
ce94a81831
Update travis to run go 1.9.2
7 years ago
Chris Bednarski
75cfaa6e93
Remove email notifications from travis [skip ci]
8 years ago
Chris Bednarski
0a51cb2a63
Only build current release + master
8 years ago
Chris Bednarski
df6e535d57
Fix use of %s instead of %+v, from go 1.8 vet
8 years ago
Chris Bednarski
8c778ab2a7
Updated test matrix
8 years ago
Chris Bednarski
831904824c
Change parsing to return errors instead of silently truncating the hosts file; fixes #23
8 years ago