mirror of
https://github.com/goodhosts/cli.git
synced 2026-04-27 07:06:00 +03:00
[PR #13] [MERGED] Adding Clean Command #27
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/13
Author: @luthermonson
Created: 9/7/2020
Status: ✅ Merged
Merged: 9/7/2020
Merged by: @luthermonson
Base:
master← Head:clean📝 Commits (2)
a73871bvendor78030faadding clean command📊 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.