tiny.tracy.cli.run
Defined in cli.
API (1)
Actions
Public operations.
Source
Source: lib/tracy/src/cli/run/dispatch.zig:40
zig
pub fn dispatch(allocator: std.mem.Allocator, args: []const []const u8) !u8 { if (args.len < 2) { try usage.write(allocator, sys.stdio.stderr()); return 1; } const command = args[1]; if (isHelpCommand(command)) { try usage.write(allocator, sys.stdio.stdout()); return 0; } for (commands) |entry| { if (std.mem.eql(u8, command, entry.name)) return try entry.run(allocator, args[2..]); } return error.UnknownCommand;}Source: lib/tracy/src/cli/root.zig:2
zig
pub const run = @import("run/root.zig");Source: lib/tracy/src/cli/run/root.zig
zig
const dispatch_mod = @import("dispatch.zig");pub const dispatch = dispatch_mod.dispatch;Audit
| Definitions | 2 |
|---|---|
| Public names | 3 |
| Members | 0 |
| Version | 26.7.0 |
| Revision | daab053ee433 |