devzone 7.1.1 → 7.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (43) hide show
  1. package/.devcontainer/Dockerfile +14 -14
  2. package/.devcontainer/ai/host-check.message +12 -12
  3. package/.devcontainer/ai/host-check.sh +1 -1
  4. package/.devcontainer/catalog/catalog-watcher.sh +7 -7
  5. package/.devcontainer/catalog.sh +1 -1
  6. package/.devcontainer/devzone +2 -14
  7. package/.devcontainer/devzone-ai.sh +1 -1
  8. package/.devcontainer/devzone-cluster.sh +1 -2
  9. package/.devcontainer/devzone-repair.sh +3 -3
  10. package/.devcontainer/devzone-services.sh +2 -2
  11. package/.devcontainer/gitlab/demo/.gitlab-ci.yml +1 -1
  12. package/.devcontainer/help.sh +0 -1
  13. package/.devcontainer/packages.sh +1 -1
  14. package/.devcontainer/password.sh +5 -6
  15. package/.devcontainer/ports.sh +1 -1
  16. package/.devcontainer/services-admin.sh +2 -2
  17. package/.devcontainer/workspace-init.sh +0 -7
  18. package/Makefile +3 -3
  19. package/README.md +1 -13
  20. package/bin/SHA256SUMS +6 -6
  21. package/bin/devzone-darwin-amd64 +0 -0
  22. package/bin/devzone-darwin-arm64 +0 -0
  23. package/bin/devzone-linux-amd64 +0 -0
  24. package/bin/devzone-linux-arm64 +0 -0
  25. package/bin/devzone-windows-amd64.exe +0 -0
  26. package/bin/devzone-windows-arm64.exe +0 -0
  27. package/manage/devzone +3 -16
  28. package/manage/scripts/ci/check-names.sh +5 -6
  29. package/manage/scripts/ci/ticket-protocol.txt +7 -0
  30. package/manage/scripts/ci/versions-tools-plan.sh +1 -1
  31. package/manage/scripts/devzone-create.sh +4 -4
  32. package/manage/scripts/devzone-update.sh +18 -22
  33. package/manage/scripts/workspace/argocd-services.sh +1 -1
  34. package/manage/scripts/workspace/argocd-workspace.sh +2 -2
  35. package/manage/scripts/workspace/ports-workspace.sh +5 -5
  36. package/manage/scripts/workspace/services-workspace.sh +3 -3
  37. package/manage/scripts/workspace/workspace-update.sh +0 -3
  38. package/manage/workspace.sh +0 -14
  39. package/package.json +1 -1
  40. package/.devcontainer/command-aliases.sh +0 -234
  41. package/.devcontainer/rename-legacy-files.sh +0 -172
  42. package/.devcontainer/rename-legacy-ports.sh +0 -119
  43. package/manage/scripts/ci/check-english.sh +0 -57
@@ -1,5 +1,5 @@
1
- # Image de base de devzone : outils sans feature officielle, versions figées.
2
- # Java, Node, Python, Docker, kubectl, helm et gh sont ajoutés par les features
1
+ # devzone base image: tools without an official feature, pinned versions.
2
+ # Java, Node, Python, kubectl, helm and gh are added by the features
3
3
  # de devcontainer.json, par-dessus cette image.
4
4
 
5
5
  # uv : binaire de l'image officielle (pas de script curl | sh)
@@ -8,7 +8,7 @@ FROM ghcr.io/astral-sh/uv:${UV_VERSION} AS uv
8
8
 
9
9
  FROM mcr.microsoft.com/devcontainers/base:ubuntu-24.04
10
10
 
11
- # Versions : pour mettre à jour, changer la version ET l'empreinte sha256,
11
+ # Versions: to update, change the version AND the sha256 checksum,
12
12
  # puis Rebuild Container
13
13
  ARG K9S_VERSION=0.51.0
14
14
  ARG ACTIONLINT_VERSION=1.7.12
@@ -17,7 +17,7 @@ ARG KIND_VERSION=0.33.0
17
17
  ARG KUBECTX_VERSION=0.11.0
18
18
  ARG RUFF_VERSION=0.17.0
19
19
  ARG VULTURE_VERSION=2.16
20
- # pytest : même version que la CI de repowarden (ci/requirements/e2e-python.in)
20
+ # pytest: same version as the repowarden CI (ci/requirements/e2e-python.in)
21
21
  ARG PYTEST_VERSION=9.1.1
22
22
  # BuildKit client (buildctl) for the Kubernetes workspace pod (#514). Pinned to
23
23
  # the buildkitd sidecar version; checksums from the moby/buildkit v0.34.2 release
@@ -34,16 +34,16 @@ ARG GO_SHA256_ARM64=3392582988a273a87ab5043ee1b2c9c17a2c3c00580bf9326c47a2e0aaae
34
34
 
35
35
  SHELL ["/bin/bash", "-o", "pipefail", "-c"]
36
36
 
37
- # Contrôles shell de repowarden ; jq : lu par son garde-fou des agents IA
38
- # (repowarden guard, module ai), qui sans lui ne vérifie rien
39
- # Python 3.12 d Ubuntu 24.04, paquets signés par apt, aucun serveur de clés (#464)
37
+ # Shell checks of repowarden; jq: read by its guard for AI agents
38
+ # (repowarden guard, ai module), which checks nothing without it
39
+ # Python 3.12 of Ubuntu 24.04, packages signed by apt, no key server (#464)
40
40
  RUN apt-get -o Acquire::Retries=5 update \
41
41
  && apt-get -o Acquire::Retries=5 install -y --no-install-recommends shellcheck bats jq python3 python3-venv python3-pip python-is-python3 \
42
42
  && rm -rf /var/lib/apt/lists/*
43
43
 
44
- # k9s, actionlint (mêmes versions que la CI de repowarden), gitleaks, kind :
45
- # installer <nom> <url> <sha256> : empreinte vérifiée avant d'installer quoi que ce soit dans /usr/local/bin
46
- # (kind est un binaire seul, sans archive : installé à part, même vérification)
44
+ # k9s, actionlint (same versions as the repowarden CI), gitleaks, kind:
45
+ # install <name> <url> <sha256>: checksum verified before installing anything into /usr/local/bin
46
+ # (kind is a single binary, without an archive: installed separately, same check)
47
47
  RUN set -eu; \
48
48
  arch="$(dpkg --print-architecture)"; \
49
49
  case "$arch" in \
@@ -75,7 +75,7 @@ RUN set -eu; \
75
75
  install -m 0755 /tmp/kind /usr/local/bin/kind-reel; \
76
76
  rm -f /tmp/kind
77
77
 
78
- # kubectx et kubens : binaires officiels ahmetb/kubectx, versions figees avec
78
+ # kubectx and kubens: official ahmetb/kubectx binaries, versions pinned with
79
79
  # empreinte sha256 par architecture (comme k9s)
80
80
  RUN set -eu; \
81
81
  arch="$(dpkg --print-architecture)"; \
@@ -142,9 +142,9 @@ ENV PATH="/usr/local/go/bin:${PATH}" \
142
142
 
143
143
  COPY --from=uv /uv /uvx /usr/local/bin/
144
144
 
145
- # ruff, vulture (repowarden code-mort a besoin des deux) et pytest, installés pour
146
- # tous les utilisateurs, avec un Python géré par uv hors du home
147
- # (variables limitées au build : uv tool install reste dans ~/.local pour vscode)
145
+ # ruff, vulture (both needed by repowarden dead-code checks) and pytest, installed
146
+ # for every user, with a Python managed by uv outside the home
147
+ # (build-only variables: uv tool install stays in ~/.local for vscode)
148
148
  RUN export UV_TOOL_DIR=/opt/uv/tools UV_TOOL_BIN_DIR=/usr/local/bin \
149
149
  UV_PYTHON_INSTALL_DIR=/opt/uv/python \
150
150
  && uv tool install "ruff==${RUFF_VERSION}" \
@@ -1,12 +1,12 @@
1
- MSG_TITRE="modèles détectés sur l'hôte (Ollama) :"
2
- MSG_AUCUN="devzone : aucun modèle Ollama détecté sur {url} (répondez sur /api/tags)"
3
- MSG_TAILLE="taille"
4
- MSG_A_JOUR="à jour"
5
- MSG_MAJ="mise à jour disponible"
6
- MSG_NON="non vérifiable"
7
- MSG_PULL="sur l'hôte : ollama pull {modele}"
8
- MSG_MESURE="mesure : reussite {reussite}, tok_s {tok_s}"
9
- MSG_RETENU="modèle retenu : {modele} ({raison})"
10
- MSG_RAISON_VAR="variable DEVZONE_HOST_MODEL"
11
- MSG_RAISON_MESURE="mesure"
12
- MSG_RAISON_REGLE="règle"
1
+ MSG_TITRE="host (Ollama) models detected:"
2
+ MSG_AUCUN="devzone: no Ollama model detected on {url} (answer on /api/tags)"
3
+ MSG_TAILLE="size"
4
+ MSG_A_JOUR="up to date"
5
+ MSG_MAJ="update available"
6
+ MSG_NON="not verifiable"
7
+ MSG_PULL="on the host: ollama pull {modele}"
8
+ MSG_MESURE="measurement reussite {reussite}, tok_s {tok_s}"
9
+ MSG_RETENU="chosen model: {modele} ({raison})"
10
+ MSG_RAISON_VAR="DEVZONE_HOST_MODEL"
11
+ MSG_RAISON_MESURE="measurement"
12
+ MSG_RAISON_REGLE="rule"
@@ -9,7 +9,7 @@
9
9
  # printed for the host). The registry is DEVZONE_OLLAMA_REGISTRY, else
10
10
  # https://registry.ollama.ai.
11
11
  # bash 3.2 (macOS). Code and comments in English; the user messages are French
12
- # and live in host-check.message (not listed in .english).
12
+ # and live in host-check.message, a data file outside the code check.
13
13
  set -euo pipefail
14
14
 
15
15
  SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env bash
2
2
  # Catalog hot detection (#414): when .devzone.modules changes, catalog.sh apply
3
3
  # runs. A single instance (lock, as #394).
4
- # catalog-watcher.sh demarrer | arreter | tour
4
+ # catalog-watcher.sh loop | start | stop | tick
5
5
  set -euo pipefail
6
6
 
7
7
  ICI="$(cd "$(dirname "$0")" && pwd)"
@@ -86,7 +86,7 @@ start_detached() {
86
86
  mkdir -p "$BASE"
87
87
  # Same detachment as relay_start: setsid when present, else nohup.
88
88
  command -v setsid >/dev/null 2>&1 && detache=(setsid)
89
- ${detache[@]+"${detache[@]}"} nohup env DEVZONE_CATALOG_REAL=yes bash "$0" boucle >"$BASE/veilleur.log" 2>&1 &
89
+ ${detache[@]+"${detache[@]}"} nohup env DEVZONE_CATALOG_REAL=yes bash "$0" loop >"$BASE/veilleur.log" 2>&1 &
90
90
  i=0
91
91
  while [ "$i" -lt 20 ]; do
92
92
  pid="$(cat "$LOCK_DIR/pid" 2>/dev/null || true)"
@@ -112,8 +112,8 @@ stop_watcher() {
112
112
  }
113
113
 
114
114
  case "${1:-}" in
115
- boucle | loop) if ! guard_watcher; then exit 2; fi; loop ;;
116
- demarrer | start | lancer)
115
+ loop) if ! guard_watcher; then exit 2; fi; loop ;;
116
+ start)
117
117
  if ! guard_watcher; then exit 2; fi
118
118
  if [ -f "$LOCK_DIR/pid" ] && kill -0 "$(cat "$LOCK_DIR/pid")" 2>/dev/null; then
119
119
  echo "already running"
@@ -121,10 +121,10 @@ case "${1:-}" in
121
121
  start_detached || exit 1
122
122
  fi
123
123
  ;;
124
- arreter | stop) stop_watcher ; echo "stopped" ;;
125
- tour | un-tour) tick ;;
124
+ stop) stop_watcher ; echo "stopped" ;;
125
+ tick) tick ;;
126
126
  *)
127
- echo "devzone : catalog-watcher : demarrer | arreter | tour" >&2
127
+ echo "devzone : catalog-watcher : loop | start | stop | tick" >&2
128
128
  exit 2
129
129
  ;;
130
130
  esac
@@ -223,7 +223,7 @@ case "${1:-}" in
223
223
  json) catalog_json ;;
224
224
  # Removal of an application: StatefulSet and service, volume kept (#441)
225
225
  remove) app_remove "$2" ;;
226
- -h | --help | aide) sed -n '2,6p' "$0" | sed 's/^# \{0,1\}//' ;;
226
+ -h | --help) sed -n '2,6p' "$0" | sed 's/^# \{0,1\}//' ;;
227
227
  *)
228
228
  echo "devzone : catalog : sync | apply | list | resume | json | remove <app>" >&2
229
229
  exit 1
@@ -49,12 +49,6 @@ MODULES=(ai kubernetes gitlab postgres argocd mysql)
49
49
  # shellcheck source=SCRIPTDIR/cluster.sh
50
50
  # shellcheck disable=SC1091
51
51
  . "$ICI/cluster.sh"
52
- # English command names are accepted (#502); a copied devzone may miss the file
53
- # shellcheck source=SCRIPTDIR/command-aliases.sh
54
- # shellcheck disable=SC1091
55
- if [ -f "$ICI/command-aliases.sh" ]; then
56
- . "$ICI/command-aliases.sh"
57
- fi
58
52
  # .argocd.conf of the instance: the GitOps repository designation (#539)
59
53
  # shellcheck source=SCRIPTDIR/argocd/conf.sh
60
54
  # shellcheck disable=SC1091
@@ -137,12 +131,6 @@ if [ -f "$ICI/state-json.sh" ]; then
137
131
  . "$ICI/state-json.sh"
138
132
  fi
139
133
 
140
- # Renamed names (#695): an old French name is refused with its new name, before
141
- # anything runs (exit 1). Without the aliases file (copied devzone): no check.
142
- if command -v reject_renamed >/dev/null 2>&1; then
143
- reject_renamed "$@" || exit 1
144
- fi
145
-
146
134
  case "${1:-}" in
147
135
  "" | status | modules) if [ "${2:-}" = "--json" ]; then state_json; else show_state; fi ;;
148
136
  enable) change_module on "${2:-}" "${@:3}" ;;
@@ -218,9 +206,9 @@ case "${1:-}" in
218
206
  port) DEVZONE_STATE="$ETAT" bash "$ICI/ports.sh" "${@:2}" ;;
219
207
  packages) bash "$ICI/packages.sh" "${@:2}" ;;
220
208
  passwords)
221
- bash "$ICI/password.sh" regenerer ||
209
+ bash "$ICI/password.sh" regenerate ||
222
210
  echo "devzone : grouped credentials not updated" >&2
223
- bash "$ICI/password.sh" chemin
211
+ bash "$ICI/password.sh" path
224
212
  ;;
225
213
  -h | --help | help) devzone_aide ;;
226
214
  test-bash32) bash "$RACINE/manage/test/bash32.sh" ;;
@@ -6,7 +6,7 @@
6
6
 
7
7
  # Marker of the default configuration: first line of opencode.jsonc. The former
8
8
  # wording (French, before #722) is still recognised. Byte escapes keep the accent
9
- # out of the source (check-english).
9
+ # out of the source (English code check).
10
10
  OPENCODE_MARKER='// devzone : default opencode configuration'
11
11
 
12
12
  # True if the file carries the default-configuration marker
@@ -6,8 +6,7 @@
6
6
 
7
7
  # All the databases disappear: confirmation in the terminal (without a terminal,
8
8
  # the command is explicit); a yes or --yes sets DELETE_DATA, read by
9
- # apply_mysql to run delete-data (#441). The arguments go through reject_renamed:
10
- # --oui is refused before reaching here, only --yes passes (#695).
9
+ # apply_mysql to run delete-data (#441); only --yes reaches this function.
11
10
  confirm_removal() {
12
11
  local app="$1" answer arg
13
12
  DELETE_DATA=""
@@ -66,7 +66,7 @@ repair_item() {
66
66
  repair_workstation() {
67
67
  repair_failed=0
68
68
  if [ "$(value_of gitlab)" = on ]; then
69
- repair_item "gitlab name" devzone gitlab hote-poser
69
+ repair_item "gitlab name" devzone gitlab host-set
70
70
  repair_item "gitlab relay" devzone gitlab relay-start
71
71
  fi
72
72
  if [ "$(value_of postgres)" = on ]; then
@@ -78,8 +78,8 @@ repair_workstation() {
78
78
  if [ "$(value_of mysql)" = on ]; then
79
79
  repair_item "mysql relay" devzone mysql relay-start
80
80
  fi
81
- repair_item "catalog watcher" env DEVZONE_CATALOG_REAL=yes bash "$ICI/catalog/catalog-watcher.sh" demarrer
82
- repair_item "credentials" bash "$ICI/password.sh" regenerer
81
+ repair_item "catalog watcher" env DEVZONE_CATALOG_REAL=yes bash "$ICI/catalog/catalog-watcher.sh" start
82
+ repair_item "credentials" bash "$ICI/password.sh" regenerate
83
83
  devzone cluster clean || true
84
84
  return "$repair_failed"
85
85
  }
@@ -101,7 +101,7 @@ apply_gitlab() {
101
101
  if [[ "$current_state" == *"ready"* && "$current_state" == *"runner online"* ]]; then
102
102
  echo "devzone : gitlab already active, nothing to do."
103
103
  # /etc/hosts regenerated by Docker: gitlab.localhost is set again here too
104
- devzone gitlab hote-poser
104
+ devzone gitlab host-set
105
105
  # Failure of an old run cleared: gitlab is ready (#366)
106
106
  rm -f "$(failure_marker_file gitlab)"
107
107
  else
@@ -114,7 +114,7 @@ apply_gitlab() {
114
114
  fi
115
115
  else
116
116
  # Disable gitlab only if its namespace still exists
117
- if devzone gitlab installe; then
117
+ if devzone gitlab installed; then
118
118
  echo "devzone : deactivating gitlab…"
119
119
  if [ -n "${DELETE_DATA:-}" ]; then
120
120
  devzone gitlab uninstall --yes
@@ -1,4 +1,4 @@
1
- # Configuration CI GitLab pour le projet de démo Python.
1
+ # GitLab CI configuration for the Python demo project.
2
2
  # Lance ruff (lint) et pytest (tests) sur chaque push/MR.
3
3
 
4
4
  image: python:3.12-slim
@@ -38,6 +38,5 @@ devzone_aide() {
38
38
  devzone port [--close <n>] list or remove a relay of the workstation
39
39
  devzone passwords regenerate .password and print its path
40
40
  devzone packages [add|remove|apply] … system packages kept after a rebuild
41
- Old French names are refused and print the new name (see the reference).
42
41
  AIDE
43
42
  }
@@ -223,6 +223,6 @@ case "${1:-}" in
223
223
  add) add_packages "${@:2}" ;;
224
224
  remove) remove_packages "${@:2}" ;;
225
225
  apply) apply_packages ;;
226
- -h | --help | aide) awk 'NR==1{next} /^#$/{exit} /^#/{sub(/^# ?/,""); print; next} {exit}' "${BASH_SOURCE[0]}" ;;
226
+ -h | --help) awk 'NR==1{next} /^#$/{exit} /^#/{sub(/^# ?/,""); print; next} {exit}' "${BASH_SOURCE[0]}" ;;
227
227
  *) refuse "unknown command: ${1:-(none)} (devzone packages --help)" ;;
228
228
  esac
@@ -1,10 +1,9 @@
1
1
  #!/usr/bin/env bash
2
2
  # Grouped credentials of the accounts created by devzone (#332).
3
- # password.sh regenerer reads the module files, writes $ROOT/.password
4
- # password.sh chemin prints the path of $ROOT/.password
3
+ # password.sh regenerate reads the module files, writes $ROOT/.password
4
+ # password.sh path prints the path of $ROOT/.password
5
5
  # The module files stay the source: .password is a regenerated view.
6
6
  # Plain-text secrets: never printed, never committed (.gitignore), mode 600.
7
- # (regenerer and chemin are public subcommand names, kept as they are.)
8
7
  set -euo pipefail
9
8
 
10
9
  PASSWORD_HERE="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
@@ -139,10 +138,10 @@ password_regenerate() (
139
138
 
140
139
  if [ "${BASH_SOURCE[0]}" = "$0" ]; then
141
140
  case "${1:-}" in
142
- regenerer) password_regenerate ;;
143
- chemin) printf '%s\n' "$PASSWORD_TARGET" ;;
141
+ regenerate) password_regenerate ;;
142
+ path) printf '%s\n' "$PASSWORD_TARGET" ;;
144
143
  *)
145
- echo "devzone : password.sh : regenerer | chemin" >&2
144
+ echo "devzone : password.sh : regenerate | path" >&2
146
145
  exit 1
147
146
  ;;
148
147
  esac
@@ -130,6 +130,6 @@ case "${1:-}" in
130
130
  ;;
131
131
  close | --close) close_port "${2:-}" ;;
132
132
  resume) summary ;;
133
- -h | --help | aide) sed -n '2,8p' "$0" | sed 's/^# \{0,1\}//' ;;
133
+ -h | --help) sed -n '2,8p' "$0" | sed 's/^# \{0,1\}//' ;;
134
134
  esac
135
135
  fi
@@ -41,8 +41,8 @@ refuse() {
41
41
  action="${1:-}"
42
42
  service="${2:-}"
43
43
  case "$action" in
44
- enable | activer) action=enable ;;
45
- disable | desactiver) action=disable ;;
44
+ enable) action=enable ;;
45
+ disable) action=disable ;;
46
46
  seed) ;;
47
47
  *) refuse "usage: services-admin.sh enable|disable|seed gitlab|postgres|argocd [options]" ;;
48
48
  esac
@@ -57,12 +57,6 @@ init_modules() {
57
57
  fi
58
58
  }
59
59
 
60
- # Former French names renamed to English (#733). Idempotent: the script logs one
61
- # line per rename, and a pair already renamed is left alone
62
- init_legacy_names() {
63
- bash "$HERE/rename-legacy-files.sh" || log "legacy names: not renamed"
64
- }
65
-
66
60
  init_prompt() {
67
61
  local bashrc="$HOME/.bashrc"
68
62
  if ! touch "$bashrc" 2>/dev/null; then
@@ -92,7 +86,6 @@ PROMPT
92
86
 
93
87
  init_safe_directory
94
88
  init_repowarden
95
- init_legacy_names
96
89
  init_modules
97
90
  init_prompt
98
91
  log "done"
package/Makefile CHANGED
@@ -8,8 +8,8 @@
8
8
  # to the first, without fixing anything. In the container: /.dockerenv, or folder /workspaces/devzone
9
9
  hors-conteneur:
10
10
  @if [ -f /.dockerenv ] || [ "$(CURDIR)" = /workspaces/devzone ]; then \
11
- echo "✖ make $(MAKECMDGOALS) : à lancer sur ta machine (terminal du Mac ou du PC), pas dans le conteneur devzone." >&2; \
12
- echo " Ici, dans le conteneur : devzone (état, modules), et les outils directement." >&2; \
11
+ echo "✖ make $(MAKECMDGOALS): run it on your machine (Mac or PC terminal), not in the devzone pod." >&2; \
12
+ echo " Here in the pod: devzone (state, modules), and the tools directly." >&2; \
13
13
  exit 1; fi
14
14
 
15
15
  help: ## Lists the commands
@@ -27,5 +27,5 @@ test-cli: hors-conteneur ## CLI tests in a real terminal: isolated devzone, then
27
27
  desinstaller: hors-conteneur ## Removes Kubernetes objects of this devzone instance, after confirmation
28
28
  @bash manage/devzone uninstall
29
29
 
30
- uninstall: hors-conteneur ## Removes Kubernetes objects of this devzone instance, after confirmation (alias of desinstaller)
30
+ uninstall: hors-conteneur ## Removes Kubernetes objects of this devzone instance, after confirmation (alias of the remove target)
31
31
  @bash manage/devzone uninstall
package/README.md CHANGED
@@ -228,8 +228,6 @@ The command shows the folder's version and the package's, and does nothing if th
228
228
 
229
229
  `workspace/`, `.devzone.modules`, `.devzone.packages`, `.password`, `.app`, `.devzone.log` and the Docker volumes are never touched.
230
230
 
231
- The old names of files and folders (`.devzone.paquets`, `.devzone.sauvegarde`, `.devzone.ports-workspace`, `.devzone.etat`, `.devzone.catalogue-veilleur`) are renamed once only, with their contents, by `.devcontainer/rename-legacy-files.sh`: at container startup and at update. A new name already present is never overwritten.
232
-
233
231
  The Kubernetes workspace is updated separately: `devzone workspace update` moves it to the latest stable release (or `--version X.Y.Z`), image, charts and Argo CD at the same tag. **The pod `devzone-workspace-0` is recreated**: the VS Code windows attached to the pod are disconnected. The image is checked on ghcr.io before any write, and nothing changes if it does not exist yet. Details in the [reference](manage/docs/reference.md#updating-the-workspace).
234
232
 
235
233
  In the workspace pod, the `devzone` summary reports a more recent published version (npm check at most once a day, without blocking offline): `○ devzone X.Y.Z disponible : sur le poste, devzone update`.
@@ -254,7 +252,7 @@ In the workspace pod, the `devzone` summary reports a more recent published vers
254
252
 
255
253
  These modules are disabled by default, can be enabled on demand from the container (without a rebuild), and their choice is kept from one startup to the next.
256
254
 
257
- The `devzone` command is written in English, subcommands and options included (`enable`, `disable`, `platform`, `packages`, `update`, `uninstall`, `status`, `use`; `postgres create`, `packages add`, `gitlab new-password`, `port --close`, `cluster --yes`). The old French names are refused with the new name; the full table is in [Removed names](manage/docs/reference.md#removed-names).
255
+ The `devzone` command is written in English, subcommands and options included (`enable`, `disable`, `platform`, `packages`, `update`, `uninstall`, `status`, `use`; `postgres create`, `packages add`, `gitlab new-password`, `port --close`, `cluster --yes`).
258
256
 
259
257
  ## Where are my credentials?
260
258
 
@@ -422,16 +420,6 @@ To remove the `devzone` command from your machine:
422
420
  npm uninstall -g devzone
423
421
  ```
424
422
 
425
- ## Removed names
426
-
427
- Commands, subcommands and options are written in English. The old French names are removed: devzone refuses them, shows the new name and does nothing.
428
-
429
- ```
430
- ✖ « activer » was renamed: devzone enable
431
- ```
432
-
433
- The full table (commands, subcommands, options) is in [the reference](manage/docs/reference.md#removed-names).
434
-
435
423
  ## Going further
436
424
 
437
425
  - [Detailed reference](https://github.com/SimBienvenueHoulBoumi/devzone/blob/main/manage/docs/reference.md)
package/bin/SHA256SUMS CHANGED
@@ -1,6 +1,6 @@
1
- bd7fc9fa7a0d1baecb19b7ff3c1afd0def07c87c31fd8e60c7e01c6a03988f3f devzone-linux-amd64
2
- 8cb046a0356e14fc51ce7668756e17d98ceb149181b6ae5864a4c29e2b5f24d7 devzone-linux-arm64
3
- d9ec7ea5f2758197674a17cb5677fd54d1d40311debb809ca40c688082d035c3 devzone-darwin-amd64
4
- 33a9281d7710adf0b50d20a045a0348edc985c042253a6f9b25d9bd2827e2790 devzone-darwin-arm64
5
- a1fee8e29ccfc866a1097ddecef21c06f58437c02f11ebca790ca06b7743017d devzone-windows-amd64.exe
6
- 8bd61da3998715280767544a8eb4202b6dfd0756b92b8deddec47a0d16cb5513 devzone-windows-arm64.exe
1
+ 447c9d2c5d62fba9bbb399c62664b08d06e40357492b42840adf505b892410bc devzone-linux-amd64
2
+ e96b301d37f723213e0b40fca037da8172e0f9b896d10ec50d64dd4a52e3f0da devzone-linux-arm64
3
+ a70cb5d0dca21f5c4291bfbb95a45340a9a257ebc5094cd98ff8abf8bfb8fc2d devzone-darwin-amd64
4
+ d7998a54299c3490fadc204d4cb9a868948a99796ca55e3129d3a89d621c11ba devzone-darwin-arm64
5
+ ad8bc862fdbd82871f3e5353099b70b32b2bd3f1a9cd9b4d07f4e146ed6063b1 devzone-windows-amd64.exe
6
+ 085063a5d7728143291a12f6546ea670a3c8492616f89043cd7cdd786d530971 devzone-windows-arm64.exe
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
package/manage/devzone CHANGED
@@ -26,7 +26,7 @@ PAQUET="$(cd "$(dirname "$(readlink -f "$SCRIPT" 2>/dev/null || echo "$SCRIPT")"
26
26
  PACKAGE_ITEMS=(.devcontainer Makefile .gitattributes README.md LICENSE)
27
27
  # Lines always present in the .gitignore of a devzone: added to, never overwritten
28
28
  GITIGNORE_LINES=(
29
- '# Chaque projet du workspace a son propre dépôt git'
29
+ '# Each workspace project has its own git repository'
30
30
  'workspace/*'
31
31
  '!workspace/.gitkeep'
32
32
  '.DS_Store'
@@ -173,7 +173,6 @@ devzone $(version): development workspace in a Kubernetes cluster
173
173
  services (gitlab, postgres, argocd) of the Kubernetes workspace
174
174
  devzone workspace argocd status|init|apply|app add|list|remove
175
175
  Argo CD of the workspace: GitOps repository, .argocd.conf, projects
176
- (old French names: refused with the new name, see the README, « Removed names »)
177
176
  devzone --version
178
177
  EOT
179
178
  }
@@ -192,18 +191,6 @@ container_command() {
192
191
 
193
192
  go_launch "$@"
194
193
 
195
- # Renamed names (#695): the French names of the host and container commands are
196
- # refused before anything is created (« devzone mettre-a-jour » must not create a
197
- # folder; « devzone stop » still creates ./stop). A copied devzone may miss the
198
- # aliases file: then no check.
199
- # shellcheck source=SCRIPTDIR/../.devcontainer/command-aliases.sh
200
- # shellcheck disable=SC1091
201
- if [ -f "$PAQUET/.devcontainer/command-aliases.sh" ]; then
202
- . "$PAQUET/.devcontainer/command-aliases.sh"
203
- reject_renamed "$@" || exit 1
204
- fi
205
-
206
-
207
194
  case "${1:-}" in
208
195
  "" | -h | --help | help) show_help ;;
209
196
  -v | --version) version ;;
@@ -224,7 +211,7 @@ case "${1:-}" in
224
211
  done
225
212
  fi
226
213
  if [ -z "$uninstaller" ]; then
227
- echo "✖ À lancer dans un dossier devzone (uninstall.sh introuvable ici)." >&2
214
+ echo "✖ Run this in a devzone folder (uninstall.sh not found here)." >&2
228
215
  exit 1
229
216
  fi
230
217
  DEVZONE_COMMAND="devzone uninstall" bash "$uninstaller"
@@ -238,7 +225,7 @@ case "${1:-}" in
238
225
  ;;
239
226
  *)
240
227
  if container_command "$1"; then
241
- echo "✖ devzone $1 : commande du conteneur ; lance-la dans devzone (make shell), ou choisis un autre nom de dossier" >&2
228
+ echo "✖ devzone $1: pod command; run it in the pod (make shell), or choose another folder name" >&2
242
229
  exit 2
243
230
  fi
244
231
  # shellcheck source=SCRIPTDIR/scripts/devzone-manifest.sh
@@ -4,8 +4,8 @@
4
4
  # list of French words below. Each fault is printed as "path: word" and the
5
5
  # run exits 1; otherwise it prints "names check: N paths ok" and exits 0.
6
6
  # Not checked: .github/ (the workflow names are referenced by the repowarden
7
- # checks) and the names listed in ALLOWED (user data kept under its name, and
8
- # the migration script, which must hold the former names). bash 3.2 (macOS).
7
+ # checks) and the names listed in ALLOWED (user data kept under its name).
8
+ # bash 3.2 (macOS).
9
9
 
10
10
  set -u
11
11
 
@@ -13,13 +13,12 @@ ICI="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
13
13
  ROOT="$(cd "$ICI/../../.." && pwd)"
14
14
 
15
15
  # French words that must not appear in a name. Split fragments, so this file
16
- # does not match its own rules (the check-english convention).
16
+ # does not match its own rules (as in the English code check).
17
17
  FRENCH=" cre_er desinst_aller migr_er ret_our et_at demarr_age catalog_ue paqu_ets plate_forme memo_ire rel_ais verr_ou veill_eur dro_its err_eurs mod_ele mod_eles ec_arts chem_ins para_llele ho_te san_s ave_c envel_oppe join_gnable isole_ment comp_te lan_cer rep_arer util_iser garde_ mett_re identi_te invi_te "
18
18
  FRENCH="$(printf '%s' "$FRENCH" | tr -d '_')"
19
19
 
20
- # Names of the user data kept as they are, and the migration script (#733, it
21
- # holds the former names to rename them)
22
- ALLOWED=" .devzone.modules .devzone.version .devcontainer/rename-legacy-files.sh "
20
+ # Names of the user data kept as they are
21
+ ALLOWED=" .devzone.modules .devzone.version "
23
22
 
24
23
  if ! paths="$(git -C "$ROOT" ls-files --cached --others --exclude-standard)"; then
25
24
  echo "check-names: git ls-files fails in $ROOT" >&2
@@ -0,0 +1,7 @@
1
+ # Ticket protocol values kept under their historical wording; data, not code.
2
+ validé
3
+ ## Besoin
4
+ ## Notes de version
5
+ ## Terminé quand…
6
+ ## Conception proposée
7
+ ## Conception retenue
@@ -45,7 +45,7 @@ notes_of() {
45
45
 
46
46
  # Title of the ticket and of the commit for the bump of tool $1 from $2 to $3
47
47
  title_of() {
48
- echo "$1 $2 → $3 dans l'image"
48
+ echo "$1 $2 → $3 in the image"
49
49
  }
50
50
 
51
51
  # "number<TAB>title" of the open ticket of AUTHOR for tool $1, nothing otherwise
@@ -33,16 +33,16 @@ create_workstation() {
33
33
  --gitops) expect=gitops ;;
34
34
  --gitops=*) gitops="${arg#--gitops=}" ;;
35
35
  --kubernetes) option=kubernetes ;;
36
- *) echo "✖ option inconnue : $arg (devzone <dossier> [--gitops github|none|<url>] [--kubernetes])" >&2; exit 1 ;;
36
+ *) echo "✖ unknown option: $arg (devzone <folder> [--gitops github|none|<url>] [--kubernetes])" >&2; exit 1 ;;
37
37
  esac
38
38
  done
39
39
  if [ -n "$expect" ]; then
40
- echo "✖ --gitops attend une valeur (github, none or a URL)" >&2
40
+ echo "✖ --gitops expects a value (github, none or a URL)" >&2
41
41
  exit 1
42
42
  fi
43
43
 
44
44
  if [ -e "$target" ] && [ -n "$(ls -A "$target" 2>/dev/null)" ]; then
45
- echo "✖ $target existe et n'est pas vide : rien n'est écrasé. Choisis un autre dossier." >&2
45
+ echo "✖ $target exists and is not empty: nothing is overwritten. Choose another folder." >&2
46
46
  exit 1
47
47
  fi
48
48
 
@@ -104,7 +104,7 @@ create_workstation() {
104
104
  esac
105
105
  target="$(cd "$target" && pwd)"
106
106
  write_manifest "$target"
107
- echo "✔ devzone $(version) créé dans $target"
107
+ echo "✔ devzone $(version) created in $target"
108
108
  # The workspace goes to the cluster (kube check done by create_mode_choose)
109
109
  create_mode_start "$target" "$PAQUET/manage/workspace.sh"
110
110
  }