A CLI tool that generates configuration files for JOJ3.
Go to file
张泊明518370910136 769287a798
All checks were successful
build / build (push) Successful in 2m12s
feat: make convert work on Windows
2025-05-30 07:01:29 -04:00
.gitea/workflows ci: skip coverage upload 2025-05-27 15:24:24 +08:00
joj3_config_generator feat: make convert work on Windows 2025-05-30 07:01:29 -04:00
tests feat: default health check score = 0 2025-05-30 07:01:28 -04:00
.editorconfig chore: simple .editorconfig 2024-10-03 22:58:24 -04:00
.gitignore chore: un-ignore pdm.lock 2025-03-06 15:51:42 -05:00
.pre-commit-config.yaml chore: use latest pycln 2025-05-27 18:07:42 -04:00
LICENSE chore: cleanup & setup pdm 2024-10-17 18:28:01 -04:00
pdm.lock chore: use pure python tomli & tomlkit 2025-03-18 04:03:36 -04:00
pyproject.toml chore: joj3-forge as script alias 2025-05-27 20:46:59 -04:00
README.md docs: command to upgrade to latest version 2025-05-30 03:59:47 -04:00

JOJ3-config-generator

Codacy Badge Codacy Badge

Getting Started

For users

  1. Install Python>=3.9 and pip
  2. Install/Upgrade the project by pip install --upgrade 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
  6. Check other commands or scripts with pdm run --list

How to use?

  • joj3-config-generator convert function is now supported, currently support one argument as input, it indicates the convert root
    • default value on the server can be given as /home/tt/.config/joj
    • NOTE: the user should ensure that the ideal repo.toml file is in the sub-directory of the convert root
    • the intended immutable files should be placed at a sub-directory named immutable_files at same position as the repo.toml file
$ tree .
.
|- immutable_files
| |-- push.yaml
| |-- release.yaml
|-- repo.toml
  • sample command on the server
joj3-config-generator convert /home/tt/.config/joj