https://github.com/victorb/hoster
Easy manage host files via a CLI
https://github.com/victorb/hoster
Last synced: 5 months ago
JSON representation
Easy manage host files via a CLI
- Host: GitHub
- URL: https://github.com/victorb/hoster
- Owner: victorb
- License: mit
- Created: 2014-10-26T12:58:43.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2014-10-27T14:23:02.000Z (over 11 years ago)
- Last Synced: 2025-08-13T05:40:19.047Z (11 months ago)
- Language: Shell
- Homepage: http://victorbjelkholm.github.io/Hoster/
- Size: 752 KB
- Stars: 4
- Watchers: 1
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
## Hoster
Easy manage host files via a CLI
## Installation
Installing is a simple as ABC
```curl -L https://raw.githubusercontent.com/victorbjelkholm/Hoster/master/install.sh | sh```
Default install is in ```/usr/bin```, if you want to change it, add a PREFIX environment variable before the curl command.
```PREFIX=/home/victor/bin curl -L https://raw.githubusercontent.com/victorbjelkholm/Hoster/master/install.sh | sh```
## Usage
`hoster`
Without any argument, hoster prints the current active hostfile
`hoster install`
Install hoster into a path where all the hosts file are stored.
`hoster use hostfile1`
Uses host file with filename ```hostfile1``` as the current, active host file.
`hoster list`
Lists all the hosts file inside the folder where hoster is installed.
`hoster create hostfile1`
Creates a new host file with filename ```hostfile1```, based on your original
## Testing, Building & Installing
`make test`
Runs the test, shunit2 is needed for this ( https://code.google.com/p/shunit2/ )
`make build`
Build an executable from the shellscript
`make install`
Installs the executable to /usr/bin/hoster. If you want to install elsewhere, just copy the ```hoster``` executable to wherever you want after running ```make build```
## Contributing
Just submit a Pull Request and/or report issues you find. If something is unclear,
please help me make it better for others.
## Planned features
* "Namespaces" via dots in filenames
* Autocompletion