docs(cmd): move README content to package comments (#85)
All checks were successful
submodules sync / sync (push) Successful in 47s
build / build (push) Successful in 1m48s
build / trigger-build-image (push) Successful in 9s

This commit is contained in:
张泊明518370910136 2025-02-11 11:15:23 -05:00
parent 19bcc90ae9
commit c474a5d493
GPG Key ID: D47306D7062CDA9D
4 changed files with 7 additions and 20 deletions

View File

@ -96,26 +96,6 @@ These steps are executed in runner-images. We use `sudo -u tt` to elevate the pe
5. Generate results. 5. Generate results.
- Once the running of stages is done, it will generate a result file where the path is specified in the configuration file. - Once the running of stages is done, it will generate a result file where the path is specified in the configuration file.
## Components
### Binaries (under `/cmd` and `/pkg`)
#### JOJ3
JOJ3 itself. Parsers and executors are compiled into the JOJ3 binary.
#### Sample
Just a sample on how to write an executable that can be called by the executor.
#### HealthCheck
The repohealth check will return a json list to for check result. The structure follows the score-comment pattern.
HealthCheck currently includes, `reposize`, `forbidden file`, `Metafile existence`, `non-ascii character` in file and message, `release tag`, and `ci files invariance` check.
The workflow is `joj3` pass cli args to healthcheck binary. See `./cmd/healthcheck/main.go` to view all flags.
## Models (for developers only) ## Models (for developers only)
The program parses the configuration file to run multiple stages. The program parses the configuration file to run multiple stages.

View File

@ -1,3 +1,5 @@
// Package main provides a joj3 executable, which runs various stages based on
// configuration files and commit message. The output is a JSON file.
package main package main
import ( import (

View File

@ -1,3 +1,6 @@
// Package main provides a repo-health-checker executable that checks the
// health of a repository. Its output should be parsed by the healthcheck
// parser.
package main package main
import ( import (

View File

@ -1,3 +1,5 @@
// Package main provides a sample executable that demonstrates how JOJ3 works.
// Its output should be parsed by the sample parser.
package main package main
import ( import (