| ... | @@ -6956,6 +6956,16 @@ const usage_fetch = | ... | @@ -6956,6 +6956,16 @@ const usage_fetch = |
| 6956 | \\Usage: zig fetch [options] <path> | 6956 | \\Usage: zig fetch [options] <path> |
| 6957 | \\ | 6957 | \\ |
| 6958 | \\ Copy a package into the global cache and print its hash. | 6958 | \\ Copy a package into the global cache and print its hash. |
| | 6959 | \\ <url> must point to one of the following: |
| | 6960 | \\ - A git+http / git+https server for the package |
| | 6961 | \\ - A tarball file (with or without compression) containing |
| | 6962 | \\ package source |
| | 6963 | \\ - A git bundle file containing package source |
| | 6964 | \\ |
| | 6965 | \\Examples: |
| | 6966 | \\ |
| | 6967 | \\ zig fetch --save git+https://example.com/andrewrk/fun-example-tool.git |
| | 6968 | \\ zig fetch --save https://example.com/andrewrk/fun-example-tool/archive/refs/heads/master.tar.gz |
| 6959 | \\ | 6969 | \\ |
| 6960 | \\Options: | 6970 | \\Options: |
| 6961 | \\ -h, --help Print this help and exit | 6971 | \\ -h, --help Print this help and exit |