mirror of
https://github.com/goodhosts/cli.git
synced 2026-04-27 07:06:00 +03:00
[PR #46] [MERGED] Add batch check command and safety features to CLI #45
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/goodhosts/cli/pull/46
Author: @tomjn
Created: 12/30/2025
Status: ✅ Merged
Merged: 1/20/2026
Merged by: @luthermonson
Base:
main← Head:feature/batch-check📝 Commits (2)
bbb1441Add batch check command and safety features to CLIad09e4aUpdate hostsfile dependency to v0.1.7📊 Changes
7 files changed (+112 additions, -23 deletions)
View changed files
📝
cmd/add.go(+1 -1)📝
cmd/app.go(+31 -0)📝
cmd/check.go(+72 -10)📝
cmd/clean.go(+1 -1)📝
cmd/remove.go(+1 -1)📝
go.mod(+2 -2)📝
go.sum(+4 -8)📄 Description
Main goal here is to add features so that when using vagrant we don't need to trigger a
sudocall if we don't have to. That means checks and batch operations. Likewise accounting for if the user walks away and we prompt them for a sudo password, then other programs change the hosts file while we're waiting for permission to make changesThis depends on https://github.com/goodhosts/hostsfile/pull/57
Features added:
check <IP> <host1> <host2>...Command updates:
Dependencies:
Exit codes:
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.