func handleSyncSingle(ctx *cli.Context, client *daemon.Client, idStr string) error { ID, err := id.Cast(idStr) if err != nil { return ExitCode{ BadArgs, fmt.Sprintf("Bad ID: %v", err), } } log.Infof("Syncing with %s", ID) if err := client.Sync(ID); err != nil { log.Errorf("Failed: %v", err) return ExitCode{UnknownError, err.Error()} } return nil }