divekit doctor
The ‘doctor’ command checks your system environment, verifies prerequisites, and detects common configuration issues to ensure the CLI is functioning properly.
[!WARNING] was originally called
divekit init
and should be renamed, because other functionality might be expected due togit init
andnpm init
.
divekit doctor
is an in-depth diagnosis of the entire environment. It provides a comprehensive analysis and detailed information about potential issues.
It is a kind of “first-aid tool” that offers concrete solutions or even automatically fixes problems.
Flutter uses flutter doctor
for similar functionality, so divekit doctor
could be appropriate.
[!NOTE] Works, only token verification is still missing.
divekit doctor (some checks failed)
$ divekit doctor
System:
[β] git available
[β] npm available
[β] Modules installed
β’ 'Automated Repo Setup' available
β’ 'Repo Editor' available
[X] Token not found
β’ Please provide a GitLab API token via `divekit doctor --glpat <YOUR_TOKEN>`
β’ You can create a new token at https://gitlab.git.nrw/-/user_settings/personal_access_tokens?name=git.nrw/divekit&scopes=api
Origin:
[β] Config available and valid
[β] No orphan variables found
[β] No hardcoded variations found
Distribution:
β’ supervisor:
[β] All remotes are reachable
[β] All NoChange files are equal to local files
β’ students:
[!] No remotes found
β’ Run `divekit distribute --distribution students` to distribute the repositories
divekit doctor (all checks passed)
$ divekit doctor
System:
[β] git available
[β] npm available
[β] Modules installed
β’ 'Automated Repo Setup' available
β’ 'Repo Editor' available
[β] Token is valid and has the necessary permissions
Origin:
[β] Config available and valid
[β] No orphan variables found
[β] No hardcoded variations found
Distribution:
β’ supervisor:
[β] All remotes are reachable
[β] All NoChange files are equal to local files
β’ students:
[β] All remotes are reachable
[β] All NoChange files are equal to local files
divekit doctor list
List all available checks with short explanations:
$ divekit doctor list
You can call single checks or check groups by calling
`$ divekit doctor check <comma-separated-dot-notated-paths>`
Example:
`$ divekit doctor check system.token
[β] Token is valid and has the necessary permissions
`
system - checks all children
git - checks if `git` is accessible
npm - checks if `npm` is accessible
modules - checks if module dependencies are accessible
token - checks if the token is accessible and valid
origin - checks all children
config - checks if the origin config is valid
orphan_variables - checks if orphan variable names were found
hardcoded_variations - checks if hardcoded variations were found
distribution - checks all children
<distribution_name> - checks all children
remotes_reachable - checks if all configured remotes are reachable
no_change_files - checks if files not to be changed were changed
divekit doctor check
execute specific checks:
$ divekit doctor check system.token
[β] Token is valid and has the necessary permissions
$ divekit doctor check origin.config
[β] Config is available and valid
$ divekit doctor check system.token,origin.config
System:
[β] Token is valid and has the necessary permissions
Origin:
[β] Config is available and valid
Last modified January 23, 2025: create files for notes, ideas, questsions (d0ee9e3)