Merge pull request #2 from viniciusfdasilva/dev
[Feature] Including in Danix Vlang support
This commit is contained in:
commit
0ce17668c3
|
|
@ -0,0 +1,30 @@
|
||||||
|
name: Danix File System
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
- dev
|
||||||
|
|
||||||
|
pull_request:
|
||||||
|
- main
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
continuous-integration:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v3
|
||||||
|
- name: Test
|
||||||
|
- uses: actions/setup-python@v2
|
||||||
|
- with:
|
||||||
|
python-version: 3.11
|
||||||
|
- name: Install Requirements
|
||||||
|
run: |
|
||||||
|
pip install -r requirements.txt
|
||||||
|
- name: Creating Database
|
||||||
|
run: |
|
||||||
|
python manage.py makemigrations
|
||||||
|
python manage.py migrate
|
||||||
|
- name: Run Danix
|
||||||
|
run: |
|
||||||
|
python danix.py
|
||||||
|
|
||||||
|
|
@ -6,6 +6,7 @@ __pycache__/
|
||||||
# C extensions
|
# C extensions
|
||||||
*.so
|
*.so
|
||||||
|
|
||||||
|
.obsidian
|
||||||
# Distribution / packaging
|
# Distribution / packaging
|
||||||
.Python
|
.Python
|
||||||
build/
|
build/
|
||||||
|
|
|
||||||
|
|
@ -27,7 +27,7 @@ usages.add_argument("-sc", "--snapshotcreate", help="Create snapshot", requ
|
||||||
usages.add_argument("-sb", "--snapshotback" , help="Back snapshot", required=False)
|
usages.add_argument("-sb", "--snapshotback" , help="Back snapshot", required=False)
|
||||||
usages.add_argument("-c", "--copy" , help="Copy files and directories", required=False)
|
usages.add_argument("-c", "--copy" , help="Copy files and directories", required=False)
|
||||||
|
|
||||||
usages.add_argument("-o", "--option", choices=["clike", "java", "python", "ruby", "lua", "go", "ada", "dotnet"], required=False)
|
usages.add_argument("-o", "--option", choices=["clike", "java", "python", "ruby", "lua", "go", "ada", "dotnet", "v"], required=False)
|
||||||
|
|
||||||
args = parser.parse_args()
|
args = parser.parse_args()
|
||||||
|
|
||||||
|
|
@ -39,7 +39,8 @@ languanges_and_softwares = {
|
||||||
"lua" : Languanges.Lua(),
|
"lua" : Languanges.Lua(),
|
||||||
"go" : Languanges.Go(),
|
"go" : Languanges.Go(),
|
||||||
"ada" : Languanges.Ada(),
|
"ada" : Languanges.Ada(),
|
||||||
"dotnet" : Languanges.Dotnet()
|
"dotnet" : Languanges.Dotnet(),
|
||||||
|
"v" : Languanges.VLang()
|
||||||
}
|
}
|
||||||
|
|
||||||
if check_system_configuration():
|
if check_system_configuration():
|
||||||
|
|
|
||||||
|
|
@ -92,6 +92,14 @@ class Template():
|
||||||
return Template.essentials_menu() + Template.languange_menu(packages)
|
return Template.essentials_menu() + Template.languange_menu(packages)
|
||||||
|
|
||||||
class Languanges():
|
class Languanges():
|
||||||
|
|
||||||
|
class VLang():
|
||||||
|
packages = ["v"]
|
||||||
|
config_commands = []
|
||||||
|
|
||||||
|
def install(self, environment_name, template):
|
||||||
|
Template.install(self.packages, environment_name, self.config_commands, template)
|
||||||
|
|
||||||
class Python():
|
class Python():
|
||||||
|
|
||||||
packages = ["python3 py3-pip", "python3"]
|
packages = ["python3 py3-pip", "python3"]
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue