aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--CMakeLists.txt28
-rw-r--r--cli_config_manager.org58
-rw-r--r--src/main.c6
3 files changed, 92 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
new file mode 100644
index 0000000..37c6fd0
--- /dev/null
+++ b/CMakeLists.txt
@@ -0,0 +1,28 @@
+cmake_minimum_required (VERSION 3.5.6)
+project(ck C)
+
+# Set project directories
+set(PROJECT_SOURCE_DIR ./src)
+# Set source code locations
+set(ckBin_src ${PROJECT_SOURCE_DIR}/main.c)
+set(ckLib_src
+ ${PROJECT_SOURCE_DIR}/main.c
+)
+set(ckLib_hdr
+# ${PROJECT_SOURCE_DIR}/tui.hpp
+)
+
+# Include directories
+include_directories(${PROJECT_SOURCE_DIR})
+include_directories(${PROJECT_BINARY_DIR})
+include_directories(${CMAKE_BINARY_DIR})
+
+# Create the shared library
+add_library (ckLib SHARED
+ ${ckLib_src}
+ ${ckLib_hdr}
+)
+
+# Link
+add_executable(ck ${ckBin_src})
+target_link_libraries (ck ckLib)
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 |
diff --git a/src/main.c b/src/main.c
new file mode 100644
index 0000000..e4acf4d
--- /dev/null
+++ b/src/main.c
@@ -0,0 +1,6 @@
+#include "stdio.h"
+
+int main()
+{
+ printf("Hello World\n");
+}