diff --git a/technology/applications/cli/intermodal.md b/technology/applications/cli/intermodal.md index 8230bb5..d322d70 100644 --- a/technology/applications/cli/intermodal.md +++ b/technology/applications/cli/intermodal.md @@ -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] ``` -Flags: -```shell --N, --name Set name of torrent --i, --input Torrent Files --c, --comment Torrent Comment --a, --announce 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 ` | Allow specific lint (e.g., `small-piece-length`, `private-trackerless`) | +| `-a, --announce ` | Use primary tracker announce URL for the torrent | +| `-t, --announce-tier ` | Add tiered tracker announce URLs to the torrent metadata, separate their announce URLs with commas. | +| `-c, --comment ` | Set comment text in the generated `.torrent` file | +| `--node ` | Add DHT bootstrap node to the torrent for peer discovery | +| `-g, --glob ` | Include or exclude files matching specific glob patterns | +| `-i, --input ` | Read contents from input source (file, dir, or standard input) | +| `-N, --name ` | Set name of the encoded magnet link to specific text | +| `-o, --output ` | Save `.torrent` file to specified target or print to output | +| `--peer ` | Add peer specification to the generated magnet link | +| `-p, --piece-length ` | Set piece length for encoding torrent metadata | +| `--sort-by ` | Determine order of files within the encoded torrent (path, size, or both) | +| `-s, --source ` | Set source field in encoded torrent metadata to specific text | +| `--update-url ` | Set URL where revised version of metainfo can be downloaded | ### Show torrent information ```shell imdl torrent show ``` +You can output the information as JSON using `--json`. + ### Verify torrent ```shell imdl torrent verify imdl torrent verify --input torr.torrent --content file ``` -### Generate magnet link +### Magnet Links ```shell -imdl torrent link -``` \ No newline at end of file +# Get magnet link from torrent file +imdl torrent link [-s, --select-only ...] +# 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 ] + +# Announce a torrent +imdl torrent announce +``` diff --git a/technology/dev/programming/languages/Dart.md b/technology/dev/programming/languages/Dart.md index 45d9586..2a3a183 100644 --- a/technology/dev/programming/languages/Dart.md +++ b/technology/dev/programming/languages/Dart.md @@ -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!'); } ```