more formatting

This commit is contained in:
Emil Lerch 2025-12-09 13:03:27 -08:00
parent d76ace8670
commit cdc198e186
Signed by: lobo
GPG key ID: A7B62D657EF764F8

View file

@ -270,13 +270,21 @@ pub fn main() !void {
try stdout.print("🔐 Authenticating...\n", .{});
try stdout.flush();
const auth = try authenticate(allocator, creds.username, creds.password);
const auth = try authenticate(
allocator,
creds.username,
creds.password,
);
defer allocator.free(auth.id_token);
defer allocator.free(auth.user_uuid);
try stdout.print("✓ User UUID: {s}\n\n", .{auth.user_uuid});
try stdout.print("📱 Fetching devices...\n", .{});
try stdout.flush();
const result = try getDevices(allocator, auth.id_token, creds.username);
const result = try getDevices(
allocator,
auth.id_token,
creds.username,
);
defer result.deinit();
if (result.value.object.get("data")) |data| {