@headroom-cms/cli 0.1.5 → 0.1.6
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/dist/index.js +3 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -734,7 +734,8 @@ function registerContentCommand(program2) {
|
|
|
734
734
|
q: opts.query,
|
|
735
735
|
search: opts.search,
|
|
736
736
|
sort: opts.sort,
|
|
737
|
-
relatedTo: opts.relatedTo,
|
|
737
|
+
relatedTo: opts.relatedTo?.includes(":") ? opts.relatedTo.split(":")[1] : opts.relatedTo,
|
|
738
|
+
relField: opts.relatedTo?.includes(":") ? opts.relatedTo.split(":")[0] : void 0,
|
|
738
739
|
limit: opts.limit,
|
|
739
740
|
cursor: opts.cursor
|
|
740
741
|
});
|
|
@@ -1531,7 +1532,7 @@ See also: login, site`
|
|
|
1531
1532
|
// src/cli.ts
|
|
1532
1533
|
function createProgram() {
|
|
1533
1534
|
const program2 = new Command();
|
|
1534
|
-
program2.name("headroom").description("Headroom CMS command-line interface").version("0.1.
|
|
1535
|
+
program2.name("headroom").description("Headroom CMS command-line interface").version("0.1.6").option("--site <host>", "override active site for this command").option("--api-url <url>", "override API URL for this command").option("--debug", "print HTTP request/response details to stderr").option("-q, --quiet", "suppress output, exit code only").option("--table", "output as formatted table instead of JSON").option("--no-color", "disable colored output");
|
|
1535
1536
|
program2.hook("preAction", (_thisCommand, actionCommand) => {
|
|
1536
1537
|
const opts = actionCommand.optsWithGlobals();
|
|
1537
1538
|
setQuiet(!!opts.quiet);
|