A CLI tool that generates configuration files for JOJ3.
Go to file
李衍志523370910113 2a2387fff2
Some checks failed
build / build (push) Failing after 2m18s
build / build (pull_request) Failing after 2m22s
refactor(convert): remove distribute json
2025-02-27 09:58:19 +08:00
.gitea/workflows ci: use local checkout 2025-02-25 03:12:25 -05:00
joj3_config_generator refactor(convert): remove distribute json 2025-02-27 09:58:19 +08:00
tests fix: conflict with master 2025-02-27 09:49:16 +08:00
.editorconfig chore: simple .editorconfig 2024-10-03 22:58:24 -04:00
.gitignore chore: remove useless files 2025-02-24 22:12:35 +08:00
.pre-commit-config.yaml chore: remove all unused imports 2024-11-09 19:42:19 -05:00
LICENSE chore: cleanup & setup pdm 2024-10-17 18:28:01 -04:00
pyproject.toml chore: remove useless files 2025-02-24 22:12:35 +08:00
README.md fix: conflict with master 2025-02-27 09:49:16 +08:00

JOJ3-config-generator

Getting Started

For users

  1. Install Python>=3.9 and pip
  2. Install the project by pip install git+ssh://git@focs.ji.sjtu.edu.cn:2222/JOJ/JOJ3-config-generator.git
  3. Run it by joj3-config-generator --help

For developers

  1. Clone this repo by git clone ssh://git@focs.ji.sjtu.edu.cn:2222/JOJ/JOJ3-config-generator.git
  2. Install Python>=3.9 and PDM
  3. Change dir to the repo, cd JOJ3-config-generator
  4. Install deps by pdm install && pdm run pre-commit install
  5. Run the cli app by pdm run app --help <<<<<<< HEAD

How to use?

  • joj3-config-generator convert function is now supported, currently support three flags:

    • -d/--distribute: Add it without other input, it indicates script is ready to convert things other than testcases within the project
    • -c/--conf-root: This is where you want to put all your 'task.toml' type folders, default choice for your input can be '/home/tt/.config/joj/'
    • -r/--repo-root: This would be where you put your 'repo.toml' file as well as your 'immutable files', they should all be at same place, default choice for your input can be 'immutable_files', which is the folder at the position '/home/tt/.config/joj/'
  • sample command on the server

joj3-config-generator convert -d -c /home/tt/.config/joj/ -r immutable_files

======= 6. Check other commands or scripts with pdm run --list

master