コンテンツにスキップ
Dotweave Dotweave v0.48.0

dotweave track

ローカルファイルやディレクトリを同期対象として登録します。

ローカルファイルやディレクトリを同期対象として登録します。

ホームディレクトリ内のファイルやディレクトリを登録し、dotweaveがsyncディレクトリにミラーリングできるようにします。すでにtrackされているターゲットの場合は、指定したmanifestフィールドだけを更新し、未指定のフィールドは保持します。

dotweave track <target> [flags]

| 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(デフォルト)、secretignore のいずれかです。 | | --permission <octal\|platform=octal> | 復元するファイルpermissionです(4桁のoctal)。 | | --profile <profile> | 登録済みprofileに同期を限定します。複数指定する場合はflagを繰り返します。 |

設定ファイルをtrackする:

dotweave track ~/.config/starship.toml

secretを含むディレクトリをtrackする:

dotweave track ~/.ssh --mode secret

特定のprofileに限定してファイルをtrackする:

dotweave track ~/.config/work-proxy.conf --profile work

trackされたディレクトリ内の子パスのmodeを上書きする:

dotweave track .ssh/config --mode ignore

リポジトリパスと復元permissionを指定する:

dotweave track ~/.ssh/config --repo ssh/config --mode secret --permission 0600