Removed old patches

This commit is contained in:
2017-11-01 20:11:05 +01:00
parent e70dc0daed
commit cf00461feb
28 changed files with 57 additions and 403 deletions

View File

@ -24,21 +24,14 @@ func main() {
}
color.Yellow("Resetting all inventories")
// Get a stream of all users
allUsers, err := arn.StreamUsers()
arn.PanicOnError(err)
defer arn.Node.Close()
// Iterate over the stream
for user := range allUsers {
for user := range arn.StreamUsers() {
fmt.Println(user.Nick)
inventory := arn.NewInventory(user.ID)
err = inventory.Save()
if err != nil {
color.Red(err.Error())
}
inventory.Save()
}
color.Green("Finished.")