Dotter هو مدير dotfile و templater.
Dotfiles هي ملفات التكوين التي عادة ما تعيش في الدليل الرئيسي وتبدأ بنقطة. في كثير من الأحيان ، من المستحسن الحصول على نسخة احتياطية من جميع التكوينات على نظامك ، وهذا هو السبب في أن الكثير من المستخدمين قد تم حفظها في مستودع GIT ، ثم يقومون بتوزيعها على مواقعهم المستهدفة باستخدام ln -s .
ومع ذلك ، هناك العديد من المشكلات مع نهج Barebones:
يهدف Dotter إلى حل كل هذه المشكلات من خلال توفير تكوين مرن وترتيب أوتوماتيكي أو الانتعاش إلى المواقع المستهدفة.
يتوفر Dotter على Homebrew باستخدام brew install dotter
تتوفر حزم Aur التالية:
يتم الحفاظ على كل هؤلاء من قبل Orhun - شكر كبير له!
Dotter متاح على السبق الصحفي. قم scoop install dotter لتثبيت أحدث إصدار.
قم بتنزيل The Binary for Platform من أحدث إصدار ثم ضعه في $PATH الخاص بك أو في مستودع dotfile الخاص بك (ثم تقوم بتشغيله باستخدام ./dotter ). بدلاً من ذلك ، يكون Dotter على Catse.io ، لذلك إذا قمت بتثبيت Rustup ، فقم cargo install dotter .
تحقق من الويكي لمزيد من المعلومات. من بين أشياء أخرى ، يشرح كيفية إعداد وتكوين Dotter ، بالإضافة إلى إعطاء نظرة ثاقبة حول كيفية عمل Templating and Deployment.
الآن بعد أن قمت بتكوين جميع أقسام الملفات العالمية والمحلية ، يمكنك ببساطة تشغيل dotter من داخل المستودع الخاص بك.
سيتم نشر جميع الملفات في مواقعها المستهدفة.
تحقق من dotter -h للحصول على أعلام سطر الأوامر التي تدعمها Dotter:
A dotfile manager and templater written in rust
Usage: dotter [OPTIONS] [COMMAND]
Commands:
deploy Deploy the files to their respective targets. This is the default subcommand
undeploy Delete all deployed files from their target locations. Note that this operates on all files that are currently in cache
init Initialize global.toml with a single package containing all the files in the current directory pointing to a dummy value and a local.toml that selects that package
watch Run continuously, watching the repository for changes and deploying as soon as they happen. Can be ran with `--dry-run`
gen-completions Generate shell completions
help Print this message or the help of the given subcommand(s)
Options:
-g, --global-config <GLOBAL_CONFIG>
Location of the global configuration [default: .dotter/global.toml]
-l, --local-config <LOCAL_CONFIG>
Location of the local configuration [default: .dotter/local.toml]
--cache-file <CACHE_FILE>
Location of cache file [default: .dotter/cache.toml]
--cache-directory <CACHE_DIRECTORY>
Directory to cache into [default: .dotter/cache]
--pre-deploy <PRE_DEPLOY>
Location of optional pre-deploy hook [default: .dotter/pre_deploy.sh]
--post-deploy <POST_DEPLOY>
Location of optional post-deploy hook [default: .dotter/post_deploy.sh]
--pre-undeploy <PRE_UNDEPLOY>
Location of optional pre-undeploy hook [default: .dotter/pre_undeploy.sh]
--post-undeploy <POST_UNDEPLOY>
Location of optional post-undeploy hook [default: .dotter/post_undeploy.sh]
-d, --dry-run
Dry run - don't do anything, only print information. Implies -v at least once
-v, --verbose...
Verbosity level - specify up to 3 times to get more detailed output. Specifying at least once prints the differences between what was before and after Dotter's run
-q, --quiet
Quiet - only print errors
-f, --force
Force - instead of skipping, overwrite target files if their content is unexpected. Overrides --dry-run
-y, --noconfirm
Assume "yes" instead of prompting when removing empty directories
-p, --patch
Take standard input as an additional files/variables patch, added after evaluating `local.toml`. Assumes --noconfirm flag because all of stdin is taken as the patch
--diff-context-lines <DIFF_CONTEXT_LINES>
Amount of lines that are printed before and after a diff hunk [default: 3]
-h, --help
Print help
-V, --version
Print version
نرحب بالمساهمات في Dotter ، سواء في شكل طلب سحب أو مشكلة (لالتقاط الخلل أو طلبات الميزات أو التعليقات المفيدة الأخرى)
مثل ما أفعله وأريد أن أشجعني على الاستمرار؟
يمكنك التبرع بمبلغ صغير عبر PayPal.
التبرعات غير متوقع ولكن موضع تقدير كبير.