state man. API && modularisation

- adds functions
  - util_create_state
  - util_read_state
  - util_write_state
  - util_delete_state
for state management API. see docs/about_states.md for details.

- moves functions from _reve.sh to _reve_utils.sh to prevent circular
imports.
This commit is contained in:
2024-10-09 20:01:30 +03:00
parent dd663f47a0
commit 245dc99887
10 changed files with 262 additions and 41 deletions

View File

@@ -284,6 +284,11 @@ shell-completion)
f_shell_completion
exit 0
;;
state)
if [ "$2" == "clean" ]; then
util_deleteall_temp
fi
;;
mode)
in_desktop_mode="$2"
;;