fix whitespace stuff

This commit is contained in:
Adora Laura Kalb 2023-03-25 15:16:26 +01:00
parent 6d75376d7f
commit 67f9e0b6fb
19 changed files with 1059 additions and 1059 deletions

View file

@ -56,10 +56,10 @@ var subnetaddCmd = &cobra.Command{
// Exit if parsed value is an IPv6 Address // Exit if parsed value is an IPv6 Address
// TODO: Implement IPv6 support // TODO: Implement IPv6 support
if !ipnet.Addr().Is4() { // if !ipnet.Addr().Is4() {
fmt.Printf("[ERROR] IPv6 is not yet supported!\n") // fmt.Printf("[ERROR] IPv6 is not yet supported!\n")
os.Exit(1) // os.Exit(1)
} // }
currentuser, _ := user.Current() currentuser, _ := user.Current()

View file

@ -39,7 +39,7 @@ var subnetlistCmd = &cobra.Command{
return subnets[i].Subnet.Addr().Less(subnets[j].Subnet.Addr()) return subnets[i].Subnet.Addr().Less(subnets[j].Subnet.Addr())
}) })
fmt.Printf("%-15s VLAN %-25s Free IPs\n", "Prefix", "Name") fmt.Printf("%-18s VLAN %-25s Free IPs\n", "Prefix", "Name")
for _, subnet := range subnets { for _, subnet := range subnets {
var numip, freeip int var numip, freeip int