kaihowl / dotfiles

@kaihowl does dotfiles
MIT License
5 stars 0 forks source link

Central install dispatch #778

Open kaihowl opened 1 month ago

kaihowl commented 1 month ago

Instead of repeating the same switch case over all install files:

create a central config file. The format is tab separated.

For binary install the format is:

<name>\t<platform>\t<architecture>\tbinary\t<url>\t<checksum>

For package manager installs the format is:

<name>\t<platform>\t<architecture>\t<packagemanager>\t<arguments>

Replace all install invocation and switch cases with

dotinstall <name>

This will internally search for a line in the central config file that matches the name, platform, and architecture. If more than one line is matched, the install will abort.

Open questions: