Comments (3)
To maintain compatibility with all other commands, you need to use --profile,-p
. But this is something I'm thinking on changing at some point, not sure.
from hostctl.
profiles are First-class citizen in hostctl
. It only makes sense to not require a flag to enter them in the first place.
add domains
could be a flag itself: add --domain,-d
, since it doesn't have any special flags or behavior from the add
command, making profile default argument.
~ hostctl add -h
Reads from a file and set content to a profile in your hosts file.
If the profile already exists it will be added to it.
Usage:
hostctl add [profile] [flags]
Flags:
-f, --from string file to read
-h, --help help for add
--host-file string Hosts file path (default "/etc/hosts")
-d, --domain string Append content to your host file or profile
-q, --quiet Run command without output
ex: hostctl add awesome -d test.loc another.loc --ip 123.123.123.123
from hostctl.
For now I think that for commands that make sense I could support both options:
hostctl toggle awesome == hostctl toggle -p awesome
When I'm done with all features that I have in mind, I'll think on this breaking change. I think it makes total sense, but it requires to change semantics on almost all commands.
from hostctl.
Related Issues (20)
- Multiple "DO NOT EDIT" comments in etc/hosts HOT 2
- Display version number as part of --help HOT 4
- fix aur-publish step HOT 9
- hostctl adds entries for the same domain + ip HOT 3
- Comments turn into entries
- Support not etc/hosts config files,such as sysctl.conf and limits.conf HOT 1
- brew install guumaster/tap/hostctl does not work on Apple M1 HOT 7
- v1.1.1 - Access Denied on Windows 10 while running as administrator HOT 2
- i really want to use this by yum or dnf. HOT 1
- runtime error HOT 1
- SegFault - profile.RemoveHostNames - HOT 1
- Windows 11 profiles are not set
- Extremely slow for large files HOT 2
- installation page not found (404) HOT 4
- hostctl removes multi-value domain aliases when adding any domain
- hostctl strips ::0 off ipv6 addresses when adding any domain
- The snap package conflicts with the compiled binary package
- `hostctl sync docker` doesnโt skip containers that do not have an IP address assigned
- GitHub Action
- homebrew ubuntu 22 installation
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ๐๐๐
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from hostctl.