[PR #13] [MERGED] Adding Clean Command #27

Closed
opened 2026-03-02 05:09:18 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/goodhosts/cli/pull/13
Author: @luthermonson
Created: 9/7/2020
Status: Merged
Merged: 9/7/2020
Merged by: @luthermonson

Base: masterHead: clean


📝 Commits (2)

📊 Changes

216 files changed (+3874 additions, -23201 deletions)

View changed files

cmd/clean.go (+36 -0)
📝 cmd/list.go (+1 -18)
📝 cmd/main.go (+18 -0)
📝 go.mod (+1 -1)
📝 go.sum (+2 -294)
📝 vendor/github.com/goodhosts/hostsfile/const.go (+5 -2)
📝 vendor/github.com/goodhosts/hostsfile/const_windows.go (+5 -2)
📝 vendor/github.com/goodhosts/hostsfile/go.mod (+1 -5)
📝 vendor/github.com/goodhosts/hostsfile/go.sum (+0 -379)
📝 vendor/github.com/goodhosts/hostsfile/hosts.go (+38 -11)
📝 vendor/github.com/goodhosts/hostsfile/hostsline.go (+25 -0)
📝 vendor/golang.org/x/sys/unix/affinity_linux.go (+40 -2)
vendor/golang.org/x/sys/unix/asm_linux_riscv64.s (+0 -54)
vendor/golang.org/x/sys/unix/asm_openbsd_arm64.s (+0 -29)
📝 vendor/golang.org/x/sys/unix/bluetooth_linux.go (+0 -1)
📝 vendor/golang.org/x/sys/unix/dirent.go (+3 -88)
📝 vendor/golang.org/x/sys/unix/endian_little.go (+1 -1)
vendor/golang.org/x/sys/unix/fdset.go (+0 -29)
📝 vendor/golang.org/x/sys/unix/ioctl.go (+3 -38)
📝 vendor/golang.org/x/sys/unix/mkall.sh (+8 -25)

...and 80 more files

📄 Description

Clean command will combine multiple lines with the same IPs, remove duplicate hostnames and sort hosts alphabetically.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/goodhosts/cli/pull/13 **Author:** [@luthermonson](https://github.com/luthermonson) **Created:** 9/7/2020 **Status:** ✅ Merged **Merged:** 9/7/2020 **Merged by:** [@luthermonson](https://github.com/luthermonson) **Base:** `master` ← **Head:** `clean` --- ### 📝 Commits (2) - [`a73871b`](https://github.com/goodhosts/cli/commit/a73871b4700a5dc27cb4b7b2e8b6e401e73ff266) vendor - [`78030fa`](https://github.com/goodhosts/cli/commit/78030fa3807839ceef1bbc9954c09f4e7839c29d) adding clean command ### 📊 Changes **216 files changed** (+3874 additions, -23201 deletions) <details> <summary>View changed files</summary> ➕ `cmd/clean.go` (+36 -0) 📝 `cmd/list.go` (+1 -18) 📝 `cmd/main.go` (+18 -0) 📝 `go.mod` (+1 -1) 📝 `go.sum` (+2 -294) 📝 `vendor/github.com/goodhosts/hostsfile/const.go` (+5 -2) 📝 `vendor/github.com/goodhosts/hostsfile/const_windows.go` (+5 -2) 📝 `vendor/github.com/goodhosts/hostsfile/go.mod` (+1 -5) 📝 `vendor/github.com/goodhosts/hostsfile/go.sum` (+0 -379) 📝 `vendor/github.com/goodhosts/hostsfile/hosts.go` (+38 -11) 📝 `vendor/github.com/goodhosts/hostsfile/hostsline.go` (+25 -0) 📝 `vendor/golang.org/x/sys/unix/affinity_linux.go` (+40 -2) ➖ `vendor/golang.org/x/sys/unix/asm_linux_riscv64.s` (+0 -54) ➖ `vendor/golang.org/x/sys/unix/asm_openbsd_arm64.s` (+0 -29) 📝 `vendor/golang.org/x/sys/unix/bluetooth_linux.go` (+0 -1) 📝 `vendor/golang.org/x/sys/unix/dirent.go` (+3 -88) 📝 `vendor/golang.org/x/sys/unix/endian_little.go` (+1 -1) ➖ `vendor/golang.org/x/sys/unix/fdset.go` (+0 -29) 📝 `vendor/golang.org/x/sys/unix/ioctl.go` (+3 -38) 📝 `vendor/golang.org/x/sys/unix/mkall.sh` (+8 -25) _...and 80 more files_ </details> ### 📄 Description Clean command will combine multiple lines with the same IPs, remove duplicate hostnames and sort hosts alphabetically. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-03-02 05:09:18 +03:00
Sign in to join this conversation.
No labels
bug
bug
bug
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/cli#27
No description provided.