This commit is contained in:
parent
323d59d281
commit
28933b6af8
2 changed files with 47 additions and 14 deletions
|
@ -1,38 +1,71 @@
|
|||
---
|
||||
obj: application
|
||||
repo: https://github.com/casey/intermodal
|
||||
website: imdl.io
|
||||
rev: 2025-01-28
|
||||
---
|
||||
|
||||
# Intermodal
|
||||
[Repo](https://github.com/casey/intermodal)
|
||||
Intermodal is a user-friendly and featureful command-line [BitTorrent](../../internet/BitTorrent.md) metainfo utility. The binary is called `imdl` and runs on [Linux](../../linux/Linux.md), [Windows](../../windows/Windows.md), and [macOS](../../macos/macOS.md).
|
||||
|
||||
## Usage
|
||||
### Create torrent file:
|
||||
```shell
|
||||
imdl torrent create file
|
||||
imdl torrent create [OPTIONS] <FILES>
|
||||
```
|
||||
|
||||
Flags:
|
||||
```shell
|
||||
-N, --name <TEXT> Set name of torrent
|
||||
-i, --input <INPUT> Torrent Files
|
||||
-c, --comment <TEXT> Torrent Comment
|
||||
-a, --announce <URL> Torrent Tracker
|
||||
```
|
||||
| Option | Description |
|
||||
| -------------------------------- | ----------------------------------------------------------------------------------------------------------- |
|
||||
| `-F, --follow-symlinks` | Follow symlinks in torrent input (default: no) |
|
||||
| `-f, --force` | Overwrite destination `.torrent` file if it exists |
|
||||
| `--ignore` | Skip files listed in `.gitignore`, `.ignore`, `.git/info/exclude`, and `git config --get core.excludesFile` |
|
||||
| `-h, --include-hidden` | Include hidden files that would otherwise be skipped |
|
||||
| `-j, --include-junk` | Include junk files that would otherwise be skipped |
|
||||
| `-M, --md5` | Include MD5 checksum of each file in the torrent ( warning: MD5 is broken) |
|
||||
| `--no-created-by` | Do not populate `created by` key with imdl version information |
|
||||
| `--no-creation-date` | Do not populate `creation date` key with current time |
|
||||
| `-O, --open` | Open `.torrent` file after creation (uses platform-specific opener) |
|
||||
| `--link` | Print created torrent `magnet:` URL to standard output |
|
||||
| `-P, --private` | Set private flag, restricting peer discovery |
|
||||
| `-S, --show` | Display information about the created torrent file |
|
||||
| `-V, --version` | Print version number |
|
||||
| `-A, --allow <LINT>` | Allow specific lint (e.g., `small-piece-length`, `private-trackerless`) |
|
||||
| `-a, --announce <URL>` | Use primary tracker announce URL for the torrent |
|
||||
| `-t, --announce-tier <URL-LIST>` | Add tiered tracker announce URLs to the torrent metadata, separate their announce URLs with commas. |
|
||||
| `-c, --comment <TEXT>` | Set comment text in the generated `.torrent` file |
|
||||
| `--node <NODE>` | Add DHT bootstrap node to the torrent for peer discovery |
|
||||
| `-g, --glob <GLOB>` | Include or exclude files matching specific glob patterns |
|
||||
| `-i, --input <INPUT>` | Read contents from input source (file, dir, or standard input) |
|
||||
| `-N, --name <TEXT>` | Set name of the encoded magnet link to specific text |
|
||||
| `-o, --output <TARGET>` | Save `.torrent` file to specified target or print to output |
|
||||
| `--peer <PEER>` | Add peer specification to the generated magnet link |
|
||||
| `-p, --piece-length <BYTES>` | Set piece length for encoding torrent metadata |
|
||||
| `--sort-by <SPEC>` | Determine order of files within the encoded torrent (path, size, or both) |
|
||||
| `-s, --source <TEXT>` | Set source field in encoded torrent metadata to specific text |
|
||||
| `--update-url <URL>` | Set URL where revised version of metainfo can be downloaded |
|
||||
|
||||
### Show torrent information
|
||||
```shell
|
||||
imdl torrent show <torrent>
|
||||
```
|
||||
|
||||
You can output the information as JSON using `--json`.
|
||||
|
||||
### Verify torrent
|
||||
```shell
|
||||
imdl torrent verify <torrent>
|
||||
imdl torrent verify --input torr.torrent --content file
|
||||
```
|
||||
|
||||
### Generate magnet link
|
||||
### Magnet Links
|
||||
```shell
|
||||
imdl torrent link <torrent>
|
||||
# Get magnet link from torrent file
|
||||
imdl torrent link [-s, --select-only <INDICES>...] <torrent>
|
||||
# Select files to download. Values are indices into the `info.files` list, e.g. `--select-only 1,2,3`.
|
||||
|
||||
# Get torrent file from magnet link
|
||||
imdl torrent from-link [-o, --output <OUT>] <INPUT>
|
||||
|
||||
# Announce a torrent
|
||||
imdl torrent announce <INPUT>
|
||||
```
|
|
@ -401,11 +401,11 @@ You've seen most of the remaining operators in other examples:
|
|||
### Comments
|
||||
Dart supports single-line comments, multi-line comments, and documentation comments.
|
||||
|
||||
####Single-line comments
|
||||
#### Single-line comments
|
||||
A single-line comment begins with `//`. Everything between `//` and the end of line is ignored by the Dart compiler.
|
||||
```dart
|
||||
void main() {
|
||||
// TODO: refactor into an AbstractLlamaGreetingFactory?
|
||||
// refactor into an AbstractLlamaGreetingFactory?
|
||||
print('Welcome to my Llama farm!');
|
||||
}
|
||||
```
|
||||
|
|
Loading…
Add table
Reference in a new issue