diff --git a/sdata/subcmd-install/3.files-exp.sh b/sdata/subcmd-install/3.files-exp.sh index 2606e3809..c483cdd98 100644 --- a/sdata/subcmd-install/3.files-exp.sh +++ b/sdata/subcmd-install/3.files-exp.sh @@ -1,7 +1,13 @@ # This script is meant to be sourced. # It's not for directly running. -# TODO: https://github.com/end-4/dots-hyprland/issues/2137 +# See https://github.com/end-4/dots-hyprland/issues/2137 +# TODO: Implement versioning, i.e. when user-defined yaml config file has version number mismatch with the default one, produce error. If only minor version number is not the same, the error can be ommitted via --exp-file-no-strict . +# TODO: Implement user-define yaml with merging (override) ability for user who only wants little customization and is satisfied with most of the defaults. +# TODO: Implement symlink (readable or non-readable) as sync mode +# TODO: Implement --exp-file-reset-symlink to try to remove all symlink in .config and .local, which point to the local repo +# TODO: Update help and doc about `--exp-files` and the yaml config, including the possible values of mode. +# TODO: Support exclude pattern for each target to skip some files inside it. # Configuration file CONFIG_FILE="sdata/subcmd-install/3.files.yaml" diff --git a/sdata/subcmd-install/options.sh b/sdata/subcmd-install/options.sh index d60705354..5116ab9d5 100644 --- a/sdata/subcmd-install/options.sh +++ b/sdata/subcmd-install/options.sh @@ -27,14 +27,20 @@ Options for install: Possible values of : $(ls -A ${REPO_ROOT}/dots-extra/fontsets) ${STY_CYAN} New features (experimental): - --exp-files Use yaml-based config for the third step copying files. - This feature is ${STY_YELLOW}still on early stage${STY_CYAN}, feedback and contribution welcomed, - see https://github.com/end-4/dots-hyprland/issues/2137 for details. - --via-nix Use Nix and Home-manager to install dependencies. - This feature is ${STY_RED}working in progress${STY_CYAN}. Contribution is welcomed, - see https://github.com/end-4/dots-hyprland/issues/1061 for details. + --exp-files Use yaml-based config for the third step copying files. + This feature is ${STY_YELLOW}still on early stage${STY_CYAN}, + feedback and contribution welcomed, + see https://github.com/end-4/dots-hyprland/issues/2137 for details. + --via-nix Use Nix and Home-manager to install dependencies. + This feature is ${STY_RED}working in progress${STY_CYAN}. Contribution is welcomed, + see https://github.com/end-4/dots-hyprland/issues/1061 for details. ${STY_RST}" } +# TODO: implement options below for --exp-files +# --exp-files-path Use instead of the default yaml config +# --exp-files-no-strict Ignore error when minor version number is not the same +# --exp-files-regen Force copy the default config to ${EXP_FILE_PATH} +# (auto do this when not existed) cleancache(){ rm -rf "${REPO_ROOT}/cache"