@foliwake/cli 0.7.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.
@@ -0,0 +1,24 @@
1
+ /** `required`: --id and --owns must be given (`source add`); `source check` takes them only for a candidate. */
2
+ export declare function entryFlags({ required }: {
3
+ required: boolean;
4
+ }): {
5
+ plugin: import("@oclif/core/interfaces").OptionFlag<string, import("@oclif/core/interfaces").CustomOptions>;
6
+ id: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
7
+ 'display-name': import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
8
+ owns: import("@oclif/core/interfaces").OptionFlag<string[] | undefined, import("@oclif/core/interfaces").CustomOptions>;
9
+ mappings: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
10
+ folder: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
11
+ subfolder: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
12
+ identity: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
13
+ key: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
14
+ repository: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
15
+ branch: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
16
+ token: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
17
+ 'base-url': import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
18
+ language: import("@oclif/core/interfaces").OptionFlag<string[] | undefined, import("@oclif/core/interfaces").CustomOptions>;
19
+ 'basic-user': import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
20
+ 'basic-password': import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
21
+ 'list-title': import("@oclif/core/interfaces").OptionFlag<string[] | undefined, import("@oclif/core/interfaces").CustomOptions>;
22
+ page: import("@oclif/core/interfaces").OptionFlag<string[] | undefined, import("@oclif/core/interfaces").CustomOptions>;
23
+ 'allow-private-host': import("@oclif/core/interfaces").OptionFlag<string[] | undefined, import("@oclif/core/interfaces").CustomOptions>;
24
+ };
@@ -0,0 +1,48 @@
1
+ // The flags that describe a new source entry (source-entry.ts): `source add` saves it, `source check` checks it.
2
+ import { Flags } from '@oclif/core';
3
+ import { DEFAULT_DRIVE_KEY, DRIVE_PLUGIN } from './source-entry.js';
4
+ /** `required`: --id and --owns must be given (`source add`); `source check` takes them only for a candidate. */
5
+ export function entryFlags({ required }) {
6
+ return {
7
+ plugin: Flags.string({ description: 'the connector', default: DRIVE_PLUGIN }),
8
+ id: Flags.string({ description: 'the new source id (lower case, digits, "-")', required }),
9
+ 'display-name': Flags.string({ description: 'the name the dashboard shows' }),
10
+ owns: Flags.string({
11
+ description: 'a path the source owns, such as /lessons or "=/" (repeatable)',
12
+ multiple: true,
13
+ required,
14
+ }),
15
+ mappings: Flags.string({
16
+ description: 'a JSON file with path mapping rules (default: each file names its address)',
17
+ }),
18
+ folder: Flags.string({ description: 'Google Drive or Google Docs: the folder link or ID' }),
19
+ subfolder: Flags.string({ description: 'Google Drive or Git: the folder inside that holds the pages' }),
20
+ identity: Flags.string({
21
+ description: 'Google Drive: file-id (default; renames keep the page) or front-matter',
22
+ options: ['file-id', 'front-matter'],
23
+ }),
24
+ key: Flags.string({
25
+ description: `Google Drive or Docs: the credential name of the service-account key (default ${DEFAULT_DRIVE_KEY})`,
26
+ }),
27
+ repository: Flags.string({ description: 'Git: the https address of the repository' }),
28
+ branch: Flags.string({ description: 'Git: the branch (default main)' }),
29
+ token: Flags.string({ description: 'Git: the credential name of a read-only token (private repository)' }),
30
+ 'base-url': Flags.string({ description: 'Drupal: the site address' }),
31
+ language: Flags.string({ description: 'Drupal: a language code, the default first (repeatable)', multiple: true }),
32
+ 'basic-user': Flags.string({ description: 'Drupal: the credential name of a read-only user name (HTTP Basic)' }),
33
+ 'basic-password': Flags.string({ description: 'Drupal: the credential name of its password' }),
34
+ 'list-title': Flags.string({
35
+ description: 'Drupal: the heading of the article list page, per --language in the same order (repeatable)',
36
+ multiple: true,
37
+ }),
38
+ page: Flags.string({
39
+ description: 'Google Docs: <document link or ID>=<page path>, one published page (repeatable)',
40
+ multiple: true,
41
+ }),
42
+ 'allow-private-host': Flags.string({
43
+ description: "a host on a private network the source may reach, e.g. a Drupal inside the server's network " +
44
+ "(operator.allowPrivateHosts; the installation's owner only; repeatable)",
45
+ multiple: true,
46
+ }),
47
+ };
48
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@foliwake/cli",
3
- "version": "0.7.0",
3
+ "version": "0.9.0",
4
4
  "description": "The foliwake command without the engine: sign in to a Foliwake server and run its commands there (site status, sync, preview, publish, code deploy, branches, releases, sources, credentials, CI keys), and develop blocks against a remote preview.",
5
5
  "license": "Apache-2.0",
6
6
  "type": "module",
@@ -73,6 +73,9 @@
73
73
  "operation": {
74
74
  "description": "Long operations: their state, cancellation and recovery"
75
75
  },
76
+ "org": {
77
+ "description": "Organisations of the server"
78
+ },
76
79
  "page": {
77
80
  "description": "Working pages"
78
81
  },
@@ -98,12 +101,12 @@
98
101
  "@oclif/core": "4.14.0",
99
102
  "chokidar": "6.0.0",
100
103
  "parse5": "7.3.0",
101
- "@foliwake/blocks-contract": "0.7.0",
102
- "@foliwake/server": "0.7.0",
103
- "@foliwake/core-contract": "0.7.0",
104
- "@foliwake/site-check": "0.7.0",
105
- "create-foliwake": "0.7.0",
106
- "@foliwake/block-kit": "0.7.0"
104
+ "@foliwake/block-kit": "0.9.0",
105
+ "@foliwake/blocks-contract": "0.9.0",
106
+ "@foliwake/server": "0.9.0",
107
+ "@foliwake/site-check": "0.9.0",
108
+ "create-foliwake": "0.9.0",
109
+ "@foliwake/core-contract": "0.9.0"
107
110
  },
108
111
  "files": [
109
112
  "dist/",