Skip to content
Draft

wip #82

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
162 changes: 162 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 3 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,12 @@ num_cpus = "1"
rand = "0.8"
ergo_fs = "0.2"
yaml-rust = "0.4"
serde_json = "1.0"
serde = { version = "1", features = ["derive"] }
serde_json = "1"
symlink = "0.1"
git_commands = "0.2"
clap = { version = "4", features = ["derive", "wrap_help"] }
ansi_term = "0.12"
dialoguer = "0.11"
regex = "1.10.2"
chrono = "0.4"
8 changes: 2 additions & 6 deletions TODOS.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,7 @@
# TODOs

- only show 'run command environment' when log level is info/debug
- save timestamps (at least for install), so the next install only runs new tasks
only update/uninstall should affect already run tasks

---

- list skipped tasks (additionally to the errors)
- return Error struct instead of String from tasks (that can indicate if it's a hard failure or not)
- Fix homebrew/tap setup
- Add option to run `copy` and `symlink` as root user (needed to move/link some system files)

Expand Down
70 changes: 40 additions & 30 deletions completions/_machine_setup
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,14 @@ _machine_setup() {
'--config=[path to the config file]:CONFIG: ' \
'-t+[run a single task]:TASK: ' \
'--task=[run a single task]:TASK: ' \
'-l+[Set log level]:LEVEL: ' \
'--level=[Set log level]:LEVEL: ' \
'-s[Select a task to run]' \
'--select[Select a task to run]' \
'-d[Add debug information]' \
'--debug[Add debug information]' \
'-l+[set log level]:LEVEL: ' \
'--level=[set log level]:LEVEL: ' \
'-s[select a task to run]' \
'--select[select a task to run]' \
'-d[add debug information]' \
'--debug[add debug information]' \
'-f[force installation/uninstallation]' \
'--force[force installation/uninstallation]' \
'-h[Print help]' \
'--help[Print help]' \
'-V[Print version]' \
Expand All @@ -44,12 +46,14 @@ _arguments "${_arguments_options[@]}" \
'--config=[path to the config file]:CONFIG: ' \
'-t+[run a single task]:TASK: ' \
'--task=[run a single task]:TASK: ' \
'-l+[Set log level]:LEVEL: ' \
'--level=[Set log level]:LEVEL: ' \
'-s[Select a task to run]' \
'--select[Select a task to run]' \
'-d[Add debug information]' \
'--debug[Add debug information]' \
'-l+[set log level]:LEVEL: ' \
'--level=[set log level]:LEVEL: ' \
'-s[select a task to run]' \
'--select[select a task to run]' \
'-d[add debug information]' \
'--debug[add debug information]' \
'-f[force installation/uninstallation]' \
'--force[force installation/uninstallation]' \
'-h[Print help]' \
'--help[Print help]' \
'-V[Print version]' \
Expand All @@ -62,12 +66,14 @@ _arguments "${_arguments_options[@]}" \
'--config=[path to the config file]:CONFIG: ' \
'-t+[run a single task]:TASK: ' \
'--task=[run a single task]:TASK: ' \
'-l+[Set log level]:LEVEL: ' \
'--level=[Set log level]:LEVEL: ' \
'-s[Select a task to run]' \
'--select[Select a task to run]' \
'-d[Add debug information]' \
'--debug[Add debug information]' \
'-l+[set log level]:LEVEL: ' \
'--level=[set log level]:LEVEL: ' \
'-s[select a task to run]' \
'--select[select a task to run]' \
'-d[add debug information]' \
'--debug[add debug information]' \
'-f[force installation/uninstallation]' \
'--force[force installation/uninstallation]' \
'-h[Print help]' \
'--help[Print help]' \
'-V[Print version]' \
Expand All @@ -80,12 +86,14 @@ _arguments "${_arguments_options[@]}" \
'--config=[path to the config file]:CONFIG: ' \
'-t+[run a single task]:TASK: ' \
'--task=[run a single task]:TASK: ' \
'-l+[Set log level]:LEVEL: ' \
'--level=[Set log level]:LEVEL: ' \
'-s[Select a task to run]' \
'--select[Select a task to run]' \
'-d[Add debug information]' \
'--debug[Add debug information]' \
'-l+[set log level]:LEVEL: ' \
'--level=[set log level]:LEVEL: ' \
'-s[select a task to run]' \
'--select[select a task to run]' \
'-d[add debug information]' \
'--debug[add debug information]' \
'-f[force installation/uninstallation]' \
'--force[force installation/uninstallation]' \
'-h[Print help]' \
'--help[Print help]' \
'-V[Print version]' \
Expand All @@ -98,12 +106,14 @@ _arguments "${_arguments_options[@]}" \
'--config=[path to the config file]:CONFIG: ' \
'-t+[run a single task]:TASK: ' \
'--task=[run a single task]:TASK: ' \
'-l+[Set log level]:LEVEL: ' \
'--level=[Set log level]:LEVEL: ' \
'-s[Select a task to run]' \
'--select[Select a task to run]' \
'-d[Add debug information]' \
'--debug[Add debug information]' \
'-l+[set log level]:LEVEL: ' \
'--level=[set log level]:LEVEL: ' \
'-s[select a task to run]' \
'--select[select a task to run]' \
'-d[add debug information]' \
'--debug[add debug information]' \
'-f[force installation/uninstallation]' \
'--force[force installation/uninstallation]' \
'-h[Print help]' \
'--help[Print help]' \
'-V[Print version]' \
Expand Down
Loading