Commit Graph

108 Commits

Author SHA1 Message Date
f2f1ddb968 skip run call for modules with just one method 2020-03-06 03:07:47 +01:00
89ae3b7056 Rename start.sh to lnxtools.sh 2020-03-06 02:40:16 +01:00
6061a7d224 Change from dynamic to explicit module loading
dynamic loading was removed to have an overall better flow control,
Remove Abstract Module, 
clear out module __init__.py
2020-03-06 02:34:57 +01:00
Marcel Schwarz
8bdef1d4e8 Merge branch '12-basic-command-line-tools' into 'master'
Resolve "Install basic command-line tools"

Closes #12

See merge request icaotix/linux-tools!6
2020-03-06 00:24:12 +00:00
e9f92af66f Rename module, split program categories 2020-03-06 01:23:20 +01:00
9ec51fa959 Fix wrong input for subprocess, remove output capturing
Concat apt command entirely before execution.
2020-03-05 23:57:59 +01:00
f5cd3c6234 Add programs list, implement subprocess to start apt, error handling 2020-03-05 23:57:59 +01:00
33737fec66 Create module boilerplate 2020-03-05 23:57:59 +01:00
Marcel Schwarz
30a7f0665f Merge branch 'fix-setup-path-problem' into 'master'
Fix path problem in run script when executed elsewhere

See merge request icaotix/linux-tools!15
2020-03-05 21:32:56 +00:00
8a074ae91c Fix path problem in run script when executed elsewhere 2020-03-05 22:31:40 +01:00
Marcel Schwarz
4c81e9d66b Merge branch '19-bash-prepare-script' into 'master'
Resolve "Bash script to prepare the system for the first use of the python based cli"

Closes #19

See merge request icaotix/linux-tools!14
2020-03-05 20:41:01 +00:00
c5e3e8f368 Rename sample module to hello world 2020-03-05 21:37:15 +01:00
2f5f2cffd8 Implement start.sh 2020-03-05 21:28:06 +01:00
Marcel Schwarz
ebbc22dc49 Merge branch '18-update-module' into 'master'
Resolve "Update Module"

Closes #18

See merge request icaotix/linux-tools!13
2020-03-05 19:11:33 +00:00
5d7fde2848 Add default yes parameter 2020-03-05 19:56:54 +01:00
2e4ba51a58 Split up calls into executable and parameterlist 2020-03-05 19:55:10 +01:00
72f0244a7c change run to call 2020-03-05 19:50:23 +01:00
de73914477 Implement systemupdate module 2020-03-05 19:40:04 +01:00
Marcel Schwarz
8b0c9c689c Merge branch '17-swap-module-fix-etc-fstab-entry-problem' into 'master'
Resolve "Swap module -> fix /etc/fstab entry problem"

Closes #17

See merge request icaotix/linux-tools!12
2020-02-01 02:31:41 +00:00
Lucas Noki
50bea3cba0 Extract run shell command
rename check_fstab to fstab_exists
2020-02-01 03:28:46 +01:00
Lucas Noki
e25c3f16d6 Simplify if statements 2020-02-01 03:06:37 +01:00
Lucas Noki
faac5d22be If swap gets deleted entry from /etc/fstab gets also deleted 2020-01-29 08:52:50 +01:00
Lucas Noki
b9bf1454ad Add function to check for fstab entry, Prevent double entries 2020-01-28 10:04:39 +01:00
Marcel Schwarz
ed44d25d8d Merge branch '11-set-up-the-swap-file' into 'master'
Resolve "Set up the swap file for the system with user specified size and default size"

Closes #11

See merge request icaotix/linux-tools!9
2020-01-25 01:45:07 +00:00
Lucas Noki
9636e817cb inline swap_file member as swap_location 2020-01-25 02:39:17 +01:00
Lucas Noki
59050e0665 string formatting 2020-01-25 02:38:41 +01:00
Lucas Noki
de6b0917e8 put index access in try block 2020-01-25 02:38:12 +01:00
Lucas Noki
c3e9bcc147 Remove else because of early return 2020-01-25 02:12:10 +01:00
Lucas Noki
035e4ce6ae Inverse if case for better readability
Remove unnecessary line
2020-01-25 02:10:12 +01:00
Lucas Noki
dcb5681aa3 Fix return type, remove unnecessary space
Add newline to .gitignore
2020-01-25 01:05:07 +01:00
Lucas Noki
153b8f6d04 Rename to meaningful variable name 2020-01-25 01:02:59 +01:00
Lucas Noki
d2c729f0ab Pull out indice and rename variable 2020-01-25 01:01:37 +01:00
Lucas Noki
5d519f2380 Make methods private,
Fix error case when someone tries to delete swap even if it doesnt exist in the first place, Fix typo
2020-01-23 12:09:53 +01:00
Marcel Schwarz
b600d902ba Merge branch '15-new-cli' into 'master'
Resolve "Investigate usage of new cli (like the gcloud one)"

Closes #15

See merge request icaotix/linux-tools!10
2020-01-21 23:29:29 +00:00
Lucas Noki
82ec233680 Removed env from .gitignore 2020-01-22 00:13:32 +01:00
Lucas Noki
2c944fe209 Fix delete swap if swap doesnt exist 2020-01-21 23:58:34 +01:00
Lucas Noki
dd03126057 Fixed merge criterias:
delete unnecassary local variable, space between be and paranthesis, make return type consistent, fix multiline strings
2020-01-21 23:38:14 +01:00
4177fe2a5f Remove if-"hell" from run function 2020-01-20 22:42:01 +01:00
e573118b38 Remove if-"hell" in adjust swappiness 2020-01-20 22:33:50 +01:00
d3e2c99198 Reformatting 2020-01-20 22:33:11 +01:00
Lucas Noki
2d22f15f22 Add function to adjust temp. swapiness 2020-01-20 14:58:24 +01:00
Lucas Noki
68b2a8074c Add functions to make swap persistent, add function to show swapiness 2020-01-19 22:15:37 +01:00
Lucas Noki
aa48b95652 Replace 'is' with '==' so the interpreter stops annoying me 2020-01-19 21:08:41 +01:00
Lucas Noki
526cfda6a8 Add get swap size option, Add get swap location option
Remove unnecessary comments
Correct size output
2020-01-19 15:24:18 +01:00
Lucas Noki
fdd1c48bac Re-implement SwapModule 2020-01-18 06:23:01 +01:00
Lucas Noki
23771e22be Initial swap file 2020-01-18 06:23:01 +01:00
Lucas Noki
ff076eb527 Align vim module to new cli, hide internal functions 2020-01-18 05:56:44 +01:00
Lucas Noki
69c93fd894 Add python-fire, Remove pyinquirer from main runner script 2020-01-18 05:39:23 +01:00
Marcel Schwarz
d7531412cf Merge branch '8-set-up-vim-correctly' into 'master'
Resolve "Set up vim correctly"

Closes #8

See merge request icaotix/linux-tools!7
2020-01-12 18:07:03 +00:00
05585630ed Remove try except for vimfile creation 2020-01-12 19:00:19 +01:00