dotweave track
ローカルファイルやディレクトリを同期対象として登録します。
ローカルファイルやディレクトリを同期対象として登録します。
ホームディレクトリ内のファイルやディレクトリを登録し、dotweaveがsyncディレクトリにミラーリングできるようにします。すでにtrackされているターゲットの場合は、指定したmanifestフィールドだけを更新し、未指定のフィールドは保持します。
dotweave track <target> [flags]Arguments
Section titled “Arguments”| Argument | Description |
| ---------- | ------------------------------------------------ |
| <target> | trackするローカルパスまたはリポジトリパスです。 |
| Flag | Description |
| -------------------------------- | ---------------------------------------------------------------------------- |
| --kind <file\|directory> | まだ存在しないパスをtrackするときに使うターゲット種別です。 |
| --repo <path\|platform=path> | リポジトリ相対パスです。platform別のoverrideも指定できます。 |
| --local <platform=path> | platform別のローカルパスoverrideです。 |
| --mode <mode\|platform=mode> | syncモード: normal(デフォルト)、secret、ignore のいずれかです。 |
| --permission <octal\|platform=octal> | 復元するファイルpermissionです(4桁のoctal)。 |
| --profile <profile> | 登録済みprofileに同期を限定します。複数指定する場合はflagを繰り返します。 |
Examples
Section titled “Examples”設定ファイルをtrackする:
dotweave track ~/.config/starship.tomlsecretを含むディレクトリをtrackする:
dotweave track ~/.ssh --mode secret特定のprofileに限定してファイルをtrackする:
dotweave track ~/.config/work-proxy.conf --profile worktrackされたディレクトリ内の子パスのmodeを上書きする:
dotweave track .ssh/config --mode ignoreリポジトリパスと復元permissionを指定する:
dotweave track ~/.ssh/config --repo ssh/config --mode secret --permission 0600