Update to new version of abstract module
Delete obsolete run config for singlemodulerunner Autoformatting
This commit is contained in:
parent
4c8815ad92
commit
5cae85fa0b
24
.idea/runConfigurations/ModuleDebugger.xml
generated
24
.idea/runConfigurations/ModuleDebugger.xml
generated
@ -1,24 +0,0 @@
|
|||||||
<component name="ProjectRunConfigurationManager">
|
|
||||||
<configuration default="false" name="ModuleDebugger" type="PythonConfigurationType" factoryName="Python">
|
|
||||||
<module name="linux-tools" />
|
|
||||||
<option name="INTERPRETER_OPTIONS" value="" />
|
|
||||||
<option name="PARENT_ENVS" value="true" />
|
|
||||||
<envs>
|
|
||||||
<env name="PYTHONUNBUFFERED" value="1" />
|
|
||||||
</envs>
|
|
||||||
<option name="SDK_HOME" value="" />
|
|
||||||
<option name="WORKING_DIRECTORY" value="$PROJECT_DIR$" />
|
|
||||||
<option name="IS_MODULE_SDK" value="true" />
|
|
||||||
<option name="ADD_CONTENT_ROOTS" value="true" />
|
|
||||||
<option name="ADD_SOURCE_ROOTS" value="true" />
|
|
||||||
<EXTENSION ID="PythonCoverageRunConfigurationExtension" runner="coverage.py" />
|
|
||||||
<option name="SCRIPT_NAME" value="$PROJECT_DIR$/SingleModuleRunner.py" />
|
|
||||||
<option name="PARAMETERS" value="" />
|
|
||||||
<option name="SHOW_COMMAND_LINE" value="false" />
|
|
||||||
<option name="EMULATE_TERMINAL" value="false" />
|
|
||||||
<option name="MODULE_MODE" value="false" />
|
|
||||||
<option name="REDIRECT_INPUT" value="false" />
|
|
||||||
<option name="INPUT_FILE" value="" />
|
|
||||||
<method v="2" />
|
|
||||||
</configuration>
|
|
||||||
</component>
|
|
@ -1,13 +1,14 @@
|
|||||||
from IModule import IModule
|
from AbstractModule import AbstractModule
|
||||||
from subprocess import call
|
from subprocess import call
|
||||||
import os
|
import os
|
||||||
import shutil
|
import shutil
|
||||||
|
|
||||||
class VimModule(IModule):
|
|
||||||
|
class VimModule(AbstractModule):
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
super().__init__()
|
super().__init__()
|
||||||
|
|
||||||
def get_command(self):
|
def run(self):
|
||||||
|
|
||||||
plugins = [
|
plugins = [
|
||||||
("1. Colorschemes", "Plug 'https://github.com/rafi/awesome-vim-colorschemes.git'"),
|
("1. Colorschemes", "Plug 'https://github.com/rafi/awesome-vim-colorschemes.git'"),
|
||||||
@ -60,7 +61,7 @@ class VimModule(IModule):
|
|||||||
with open("testfile", "w+") as vimrc_file:
|
with open("testfile", "w+") as vimrc_file:
|
||||||
vimrc_file.write("\n" + "call plug#begin('~/.vim/plugged')\n")
|
vimrc_file.write("\n" + "call plug#begin('~/.vim/plugged')\n")
|
||||||
for element in clean_plugin_list:
|
for element in clean_plugin_list:
|
||||||
selection = element -1
|
selection = element - 1
|
||||||
vimrc_file.write(plugins[selection][1] + "\n")
|
vimrc_file.write(plugins[selection][1] + "\n")
|
||||||
vimrc_file.write("call plug#end()\n")
|
vimrc_file.write("call plug#end()\n")
|
||||||
|
|
||||||
@ -76,6 +77,6 @@ class VimModule(IModule):
|
|||||||
else:
|
else:
|
||||||
make_vimdir = """cd ~/Gitlab/linux-tools/ && mkdir testdirectory && cd testdirectory && mkdir autoload &&
|
make_vimdir = """cd ~/Gitlab/linux-tools/ && mkdir testdirectory && cd testdirectory && mkdir autoload &&
|
||||||
cd autoload && touch test.txt"""
|
cd autoload && touch test.txt"""
|
||||||
call(make_vimdir, shell=True)
|
call(make_vimdir, shell=True)
|
||||||
else:
|
else:
|
||||||
print("Vim-Plug already installed!")
|
print("Vim-Plug already installed!")
|
||||||
|
Loading…
Reference in New Issue
Block a user