oh-my-space 0.8.0 → 0.9.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.
- package/README.md +6 -1
- package/dist/build-info.json +1 -1
- package/dist/oms.js +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -132,7 +132,12 @@ repos:
|
|
|
132
132
|
Rules:
|
|
133
133
|
|
|
134
134
|
- `repos` must be a non-empty array.
|
|
135
|
-
- `alias` must be unique
|
|
135
|
+
- `alias` must be unique.
|
|
136
|
+
- Used as the directory name under `oms/<alias>/`.
|
|
137
|
+
- First character: ASCII lowercase letter or digit.
|
|
138
|
+
- Remaining characters: ASCII lowercase letters, digits, `-`, `_`, `@`.
|
|
139
|
+
- Not allowed: uppercase letters, `/`, `\`, `.`, whitespace.
|
|
140
|
+
- Pattern: `/^[a-z0-9][a-z0-9_@-]*$/`.
|
|
136
141
|
- `remotes` is required and must include an `origin` entry; each value is a clonable git URL. `origin` becomes the submodule's primary remote, and additional remotes are configured on `oms sync`.
|
|
137
142
|
- `branch` is optional; when omitted the remote's default branch is used as the baseline.
|
|
138
143
|
|
package/dist/build-info.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"commit":"
|
|
1
|
+
{"commit":"b2c2b0bb4e51a35fc36da6d65f40229c896f1d70"}
|
package/dist/oms.js
CHANGED
|
@@ -6,7 +6,7 @@ import { fileURLToPath } from "node:url";
|
|
|
6
6
|
import { Command } from "commander";
|
|
7
7
|
import { cancel, isCancel, log, multiselect, select, text } from "@clack/prompts";
|
|
8
8
|
import { parse as parseYaml } from "yaml";
|
|
9
|
-
const ALIAS_PATTERN = /^[a-z0-9][a-z0-
|
|
9
|
+
const ALIAS_PATTERN = /^[a-z0-9][a-z0-9_@-]*$/;
|
|
10
10
|
const REMOTE_NAME_PATTERN = /^[A-Za-z0-9][A-Za-z0-9._/-]*$/;
|
|
11
11
|
const ALLOWED_TOP_KEYS = new Set(["repos"]);
|
|
12
12
|
const ALLOWED_ITEM_KEYS = new Set(["alias", "remotes", "branch"]);
|