diff options
| author | 2019-06-21 19:15:32 +0200 | |
|---|---|---|
| committer | 2019-06-21 19:15:32 +0200 | |
| commit | 56e7be2835311888ef43f403e5d6bc2118c953fe (patch) | |
| tree | a700e966b79ec441f8936c667bd325e37c4a61dc /clap.zig | |
| parent | updated to newest version of zig (diff) | |
| download | zig-clap-56e7be2835311888ef43f403e5d6bc2118c953fe.tar.gz zig-clap-56e7be2835311888ef43f403e5d6bc2118c953fe.tar.xz zig-clap-56e7be2835311888ef43f403e5d6bc2118c953fe.zip | |
Embed examples in README during build
fixes #11
Diffstat (limited to 'clap.zig')
| -rw-r--r-- | clap.zig | 10 |
1 files changed, 4 insertions, 6 deletions
| @@ -4,18 +4,16 @@ const debug = std.debug; | |||
| 4 | const io = std.io; | 4 | const io = std.io; |
| 5 | const mem = std.mem; | 5 | const mem = std.mem; |
| 6 | 6 | ||
| 7 | pub const @"comptime" = @import("src/comptime.zig"); | ||
| 8 | pub const args = @import("src/args.zig"); | 7 | pub const args = @import("src/args.zig"); |
| 9 | pub const streaming = @import("src/streaming.zig"); | ||
| 10 | 8 | ||
| 11 | test "clap" { | 9 | test "clap" { |
| 12 | _ = @"comptime"; | ||
| 13 | _ = args; | 10 | _ = args; |
| 14 | _ = streaming; | 11 | _ = ComptimeClap; |
| 12 | _ = StreamingClap; | ||
| 15 | } | 13 | } |
| 16 | 14 | ||
| 17 | pub const ComptimeClap = @"comptime".ComptimeClap; | 15 | pub const ComptimeClap = @import("src/comptime.zig").ComptimeClap; |
| 18 | pub const StreamingClap = streaming.StreamingClap; | 16 | pub const StreamingClap = @import("src/streaming.zig").StreamingClap; |
| 19 | 17 | ||
| 20 | /// The names a ::Param can have. | 18 | /// The names a ::Param can have. |
| 21 | pub const Names = struct { | 19 | pub const Names = struct { |