diff options
author | gramanas <anastasis.gramm2@gmail.com> | 2018-04-12 23:26:29 +0300 |
---|---|---|
committer | gramanas <anastasis.gramm2@gmail.com> | 2018-04-12 23:26:29 +0300 |
commit | ef16959b92ff9bd6a88e21536e48f9946170d4a2 (patch) | |
tree | 28fad2de3fd640154eb4d674b9050abbdd8d02d9 /cli_config_manager.org | |
parent | 79198975e079affe281fcbfe4a2c47dfcc8e3817 (diff) | |
download | ck-ef16959b92ff9bd6a88e21536e48f9946170d4a2.tar.gz ck-ef16959b92ff9bd6a88e21536e48f9946170d4a2.tar.bz2 ck-ef16959b92ff9bd6a88e21536e48f9946170d4a2.zip |
Initial
Diffstat (limited to 'cli_config_manager.org')
-rw-r--r-- | cli_config_manager.org | 58 |
1 files changed, 58 insertions, 0 deletions
diff --git a/cli_config_manager.org b/cli_config_manager.org new file mode 100644 index 0000000..a9341d3 --- /dev/null +++ b/cli_config_manager.org @@ -0,0 +1,58 @@ +* configs +** folder +** file +** +* supported actions +** init +*** set VC directory +*** set SECRET directory +** add [NEW] config PROGRAMM PATH {SECRET} {PRIMARY} +** edit PROGRAMM[/CONFIG_FILENAME] +** list programms {tree, paths, only programs} +** infile-search REGEXP + +* Backend +** ADD +*** if file exists mv it to VC_dir +*** if it is new create it to VC_dir +*** create soft link to config's path +** EDIT +*** edit primary conf file, unless stated otherwise +** LIST +*** TREE +**** Tree like view of all configs under their corresponding program + +*** PATHS +**** list of paths the configs link to +*** PROGRAMS +**** list of indexed programs +** SEARCH +*** simple mode +**** regexp matches against paths and program names +**** returns list of matched paths +*** infile +**** regexp matches in the lines of the indexed files +**** returns grep like resulst of matching lines + +* Schema +** PROGRAMS +| ID | NAME | +|----+---------| +| 1 | emacs | +| 2 | weechat | + +** CONFIGS +| ID | PATH | SECRET | PRIMARY | +|----+-------+--------+---------| +| 1 | /.../ | T | T | +| 2 | ... | T | F | +| 3 | ... | F | F | +| 4 | ... | F | T | + +** PC +| PID | CID | +|-----+-----| +| 1 | 1 | +| 1 | 2 | +| 2 | 3 | +| 2 | 4 | |