@graphprotocol/graph-cli 0.38.1-alpha-20230208031649-b554fda → 0.38.1-alpha-20230208145052-fb0a04a

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/CHANGELOG.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # @graphprotocol/graph-cli
2
2
 
3
- ## 0.38.1-alpha-20230208031649-b554fda
3
+ ## 0.38.1-alpha-20230208145052-fb0a04a
4
4
 
5
5
  ### Patch Changes
6
6
 
@@ -27,69 +27,17 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
27
27
  };
28
28
  Object.defineProperty(exports, "__esModule", { value: true });
29
29
  const path_1 = __importDefault(require("path"));
30
- const chalk_1 = __importDefault(require("chalk"));
30
+ const core_1 = require("@oclif/core");
31
31
  const DataSourcesExtractor = __importStar(require("../command-helpers/data-sources"));
32
- const gluegun_1 = require("../command-helpers/gluegun");
33
32
  const version_1 = require("../command-helpers/version");
34
33
  const debug_1 = __importDefault(require("../debug"));
35
34
  const protocols_1 = __importDefault(require("../protocols"));
36
35
  const type_generator_1 = __importDefault(require("../type-generator"));
37
- const HELP = `
38
- ${chalk_1.default.bold('graph codegen')} [options] ${chalk_1.default.bold('[<subgraph-manifest>]')}
39
- Options:
40
- -h, --help Show usage information
41
- -o, --output-dir <path> Output directory for generated types (default: generated/)
42
- --skip-migrations Skip subgraph migrations (default: false)
43
- -w, --watch Regenerate types when subgraph files change (default: false)
44
- -u, --uncrashable Generate Float Subgraph Uncrashable helper file
45
- -uc, --uncrashable-config <path> Directory for uncrashable config (default: ./uncrashable-config.yaml)
46
- `;
47
36
  const codegenDebug = (0, debug_1.default)('graph-cli:codegen');
48
- exports.default = {
49
- description: 'Generates AssemblyScript types for a subgraph',
50
- run: async (toolbox) => {
51
- // Obtain tools
52
- const { filesystem, print } = toolbox;
53
- // Read CLI parameters
54
- let { h, help, o, outputDir, skipMigrations, w, watch, u, uncrashable, uc, uncrashableConfig } = toolbox.parameters.options;
55
- // Support both long and short option variants
56
- help || (help = h);
57
- outputDir || (outputDir = o);
58
- watch || (watch = w);
59
- uncrashable || (uncrashable = u);
60
- let uncrashable_config = uncrashableConfig || uc;
61
- let manifest;
62
- try {
63
- [manifest] = (0, gluegun_1.fixParameters)(toolbox.parameters, {
64
- h,
65
- help,
66
- skipMigrations,
67
- w,
68
- watch,
69
- u,
70
- uncrashable,
71
- });
72
- }
73
- catch (e) {
74
- print.error(e.message);
75
- process.exitCode = 1;
76
- return;
77
- }
37
+ class CodegenCommand extends core_1.Command {
38
+ async run() {
39
+ const { args: { 'subgraph-manifest': manifest }, flags: { 'output-dir': outputDir, 'skip-migrations': skipMigrations, watch, uncrashable, 'uncrashable-config': uncrashableConfig, }, } = await this.parse(CodegenCommand);
78
40
  codegenDebug('Initialized codegen manifest: %o', manifest);
79
- // Fall back to default values for options / parameters
80
- outputDir =
81
- outputDir !== undefined && outputDir !== '' ? outputDir : filesystem.path('generated');
82
- manifest =
83
- manifest !== undefined && manifest !== '' ? manifest : filesystem.resolve('subgraph.yaml');
84
- uncrashable_config =
85
- uncrashable_config !== undefined && uncrashable_config !== ''
86
- ? uncrashable_config
87
- : filesystem.resolve('uncrashable-config.yaml');
88
- // Show help text if requested
89
- if (help) {
90
- print.info(HELP);
91
- return;
92
- }
93
41
  let protocol;
94
42
  try {
95
43
  // Checks to make sure codegen doesn't run against
@@ -104,9 +52,7 @@ exports.default = {
104
52
  protocol = protocols_1.default.fromDataSources(dataSourcesAndTemplates);
105
53
  }
106
54
  catch (e) {
107
- print.error(e.message);
108
- process.exitCode = 1;
109
- return;
55
+ this.error(e, { exit: 1 });
110
56
  }
111
57
  const generator = new type_generator_1.default({
112
58
  subgraphManifest: manifest,
@@ -114,7 +60,7 @@ exports.default = {
114
60
  skipMigrations,
115
61
  protocol,
116
62
  uncrashable,
117
- uncrashableConfig: uncrashable_config,
63
+ uncrashableConfig,
118
64
  });
119
65
  // Watch working directory for file updates or additions, trigger
120
66
  // type generation (if watch argument specified)
@@ -124,5 +70,36 @@ exports.default = {
124
70
  else if (!(await generator.generateTypes())) {
125
71
  process.exitCode = 1;
126
72
  }
127
- },
73
+ }
74
+ }
75
+ exports.default = CodegenCommand;
76
+ CodegenCommand.description = 'Generates AssemblyScript types for a subgraph.';
77
+ CodegenCommand.args = {
78
+ 'subgraph-manifest': core_1.Args.string({
79
+ required: true,
80
+ }),
81
+ };
82
+ CodegenCommand.flags = {
83
+ 'output-dir': core_1.Flags.string({
84
+ summary: 'Output directory for generated types.',
85
+ char: 'o',
86
+ default: 'generated/',
87
+ }),
88
+ 'skip-migrations': core_1.Flags.boolean({
89
+ summary: 'Skip subgraph migrations.',
90
+ }),
91
+ watch: core_1.Flags.boolean({
92
+ summary: 'Regenerate types when subgraph files change.',
93
+ char: 'w',
94
+ }),
95
+ uncrashable: core_1.Flags.boolean({
96
+ summary: 'Generate Float Subgraph Uncrashable helper file.',
97
+ char: 'u',
98
+ }),
99
+ 'uncrashable-config': core_1.Flags.string({
100
+ summary: 'Directory for uncrashable config.',
101
+ aliases: ['uc'],
102
+ default: 'uncrashable-config.yaml',
103
+ dependsOn: ['uncrashable'],
104
+ }),
128
105
  };
@@ -7,77 +7,30 @@ const child_process_1 = require("child_process");
7
7
  const http_1 = __importDefault(require("http"));
8
8
  const net_1 = __importDefault(require("net"));
9
9
  const path_1 = __importDefault(require("path"));
10
- const chalk_1 = __importDefault(require("chalk"));
10
+ const core_1 = require("@oclif/core");
11
11
  const docker_compose_1 = __importDefault(require("docker-compose"));
12
+ const gluegun_1 = require("gluegun");
12
13
  const strip_ansi_1 = __importDefault(require("strip-ansi"));
13
14
  const tmp_promise_1 = __importDefault(require("tmp-promise"));
14
- const gluegun_1 = require("../command-helpers/gluegun");
15
15
  const spinner_1 = require("../command-helpers/spinner");
16
16
  // Clean up temporary files even when an uncaught exception occurs
17
17
  tmp_promise_1.default.setGracefulCleanup();
18
- const HELP = `
19
- ${chalk_1.default.bold('graph local')} [options] ${chalk_1.default.bold('<local-command>')}
20
-
21
- Options:
22
-
23
- -h, --help Show usage information
24
- --node-logs Print the Graph Node logs (optional)
25
- --ethereum-logs Print the Ethereum logs (optional)
26
- --compose-file <file> Custom Docker Compose file for additional services (optional)
27
- --node-image <image> Custom Graph Node image to test against (default: graphprotocol/graph-node:latest)
28
- --standalone-node <cmd> Use a standalone Graph Node outside Docker Compose (optional)
29
- --standalone-node-args Custom arguments to be passed to the standalone Graph Node (optional)
30
- --skip-wait-for-ipfs Don't wait for IPFS to be up at localhost:15001 (optional)
31
- --skip-wait-for-ethereum Don't wait for Ethereum to be up at localhost:18545 (optional)
32
- --skip-wait-for-postgres Don't wait for Postgres to be up at localhost:15432 (optional)
33
- --timeout Time to wait for service containers. (optional, defaults to 120000 milliseconds)
34
- `;
35
- exports.default = {
36
- description: 'Runs local tests against a Graph Node environment (using Ganache by default)',
37
- run: async (toolbox) => {
38
- // Obtain tools
39
- const { filesystem, print } = toolbox;
40
- // Parse CLI parameters
41
- let { composeFile, ethereumLogs, h, help, nodeImage, nodeLogs, skipWaitForEthereum, skipWaitForIpfs, skipWaitForPostgres, standaloneNode, standaloneNodeArgs, timeout, } = toolbox.parameters.options;
42
- // Support both short and long option variants
43
- help || (help = h);
44
- // Extract test command
45
- const params = (0, gluegun_1.fixParameters)(toolbox.parameters, {
46
- ethereumLogs,
47
- h,
48
- help,
49
- nodeLogs,
50
- skipWaitForEthereum,
51
- skipWaitForIpfs,
52
- skipWaitForPostgres,
53
- });
54
- // Show help text if requested
55
- if (help) {
56
- print.info(HELP);
57
- return;
58
- }
59
- if (params.length == 0) {
60
- print.error(`Test command not provided as the last argument`);
61
- process.exitCode = 1;
62
- return;
63
- }
64
- const testCommand = params[0];
18
+ class LocalCommand extends core_1.Command {
19
+ async run() {
20
+ const { args: { 'local-command': testCommand }, flags: { 'compose-file': composeFileFlag, 'ethereum-logs': ethereumLogsFlag, 'node-image': nodeImage, 'node-logs': nodeLogsFlag, 'skip-wait-for-etherium': skipWaitForEthereum, 'skip-wait-for-ipfs': skipWaitForIpfs, 'skip-wait-for-postgres': skipWaitForPostgres, 'standalone-node': standaloneNode, 'standalone-node-args': standaloneNodeArgs, timeout, }, } = await this.parse(LocalCommand);
65
21
  // Obtain the Docker Compose file for services that the tests run against
66
- composeFile || (composeFile = path_1.default.join(__dirname, '..', '..', 'resources', 'test', standaloneNode ? 'docker-compose-standalone-node.yml' : 'docker-compose.yml'));
67
- // parse timeout. Defaults to 120 seconds
68
- timeout = Math.abs(parseInt(timeout)) || 120000;
69
- if (!filesystem.exists(composeFile)) {
70
- print.error(`Docker Compose file \`${composeFile}\` not found`);
71
- process.exitCode = 1;
72
- return;
22
+ const composeFile = composeFileFlag ||
23
+ path_1.default.join(__dirname, '..', '..', 'resources', 'test', standaloneNode ? 'docker-compose-standalone-node.yml' : 'docker-compose.yml');
24
+ if (!gluegun_1.filesystem.exists(composeFile)) {
25
+ this.error(`Docker Compose file "${composeFile}" not found`, { exit: 1 });
73
26
  }
74
27
  // Create temporary directory to operate in
75
28
  const { path: tempdir } = await tmp_promise_1.default.dir({ prefix: 'graph-test', unsafeCleanup: true });
76
29
  try {
77
- await configureTestEnvironment(toolbox, tempdir, composeFile, nodeImage);
30
+ await configureTestEnvironment(tempdir, composeFile, nodeImage);
78
31
  }
79
32
  catch (e) {
80
- process.exitCode = 1;
33
+ this.exit(1);
81
34
  return;
82
35
  }
83
36
  // Bring up test environment
@@ -85,9 +38,7 @@ exports.default = {
85
38
  await startTestEnvironment(tempdir);
86
39
  }
87
40
  catch (e) {
88
- print.error(e);
89
- process.exitCode = 1;
90
- return;
41
+ this.error(e, { exit: 1 });
91
42
  }
92
43
  // Wait for test environment to come up
93
44
  try {
@@ -100,7 +51,7 @@ exports.default = {
100
51
  }
101
52
  catch (e) {
102
53
  await stopTestEnvironment(tempdir);
103
- process.exitCode = 1;
54
+ this.exit(1);
104
55
  return;
105
56
  }
106
57
  // Bring up Graph Node separately, if a standalone node is used
@@ -111,14 +62,13 @@ exports.default = {
111
62
  nodeProcess = await startGraphNode(standaloneNode, standaloneNodeArgs, nodeOutputChunks);
112
63
  }
113
64
  catch (e) {
114
- toolbox.print.error('');
115
- toolbox.print.error(' Graph Node');
116
- toolbox.print.error(' ----------');
117
- toolbox.print.error(indent(' ', Buffer.concat(nodeOutputChunks).toString('utf-8')));
118
- toolbox.print.error('');
119
65
  await stopTestEnvironment(tempdir);
120
- process.exitCode = 1;
121
- return;
66
+ let errorMessage = '\n';
67
+ errorMessage += ' Graph Node';
68
+ errorMessage += ' ----------';
69
+ errorMessage += indent(' ', Buffer.concat(nodeOutputChunks).toString('utf-8'));
70
+ errorMessage += '\n';
71
+ this.error(errorMessage, { exit: 1 });
122
72
  }
123
73
  }
124
74
  // Wait for Graph Node to come up
@@ -126,14 +76,13 @@ exports.default = {
126
76
  await waitForGraphNode(timeout);
127
77
  }
128
78
  catch (e) {
129
- toolbox.print.error('');
130
- toolbox.print.error(' Graph Node');
131
- toolbox.print.error(' ----------');
132
- toolbox.print.error(indent(' ', await collectGraphNodeLogs(tempdir, standaloneNode, nodeOutputChunks)));
133
- toolbox.print.error('');
134
79
  await stopTestEnvironment(tempdir);
135
- process.exitCode = 1;
136
- return;
80
+ let errorMessage = '\n';
81
+ errorMessage += ' Graph Node';
82
+ errorMessage += ' ----------';
83
+ errorMessage += indent(' ', await collectGraphNodeLogs(tempdir, standaloneNode, nodeOutputChunks));
84
+ errorMessage += '\n';
85
+ this.error(errorMessage, { exit: 1 });
137
86
  }
138
87
  // Run tests
139
88
  const result = await runTests(testCommand);
@@ -147,17 +96,16 @@ exports.default = {
147
96
  }
148
97
  }
149
98
  if (result.exitCode == 0) {
150
- toolbox.print.success('✔ Tests passed');
99
+ this.log('✔ Tests passed');
151
100
  }
152
101
  else {
153
- toolbox.print.error('✖ Tests failed');
102
+ this.log('✖ Tests failed');
154
103
  }
155
104
  // Capture logs
156
- nodeLogs =
157
- nodeLogs || result.exitCode !== 0
158
- ? await collectGraphNodeLogs(tempdir, standaloneNode, nodeOutputChunks)
159
- : undefined;
160
- ethereumLogs = ethereumLogs ? await collectEthereumLogs(tempdir) : undefined;
105
+ const nodeLogs = nodeLogsFlag || result.exitCode !== 0
106
+ ? await collectGraphNodeLogs(tempdir, standaloneNode, nodeOutputChunks)
107
+ : undefined;
108
+ const ethereumLogs = ethereumLogsFlag ? await collectEthereumLogs(tempdir) : undefined;
161
109
  // Bring down the test environment
162
110
  try {
163
111
  await stopTestEnvironment(tempdir);
@@ -166,28 +114,70 @@ exports.default = {
166
114
  // do nothing (the spinner already logs the problem)
167
115
  }
168
116
  if (nodeLogs) {
169
- toolbox.print.info('');
170
- toolbox.print.info(' Graph node');
171
- toolbox.print.info(' ----------');
172
- toolbox.print.info('');
173
- toolbox.print.info(indent(' ', nodeLogs));
117
+ this.log('');
118
+ this.log(' Graph node');
119
+ this.log(' ----------');
120
+ this.log('');
121
+ this.log(indent(' ', nodeLogs));
174
122
  }
175
123
  if (ethereumLogs) {
176
- toolbox.print.info('');
177
- toolbox.print.info(' Ethereum');
178
- toolbox.print.info(' --------');
179
- toolbox.print.info('');
180
- toolbox.print.info(indent(' ', ethereumLogs));
124
+ this.log('');
125
+ this.log(' Ethereum');
126
+ this.log(' --------');
127
+ this.log('');
128
+ this.log(indent(' ', ethereumLogs));
181
129
  }
182
130
  // Always print the test output
183
- toolbox.print.info('');
184
- toolbox.print.info(' Output');
185
- toolbox.print.info(' ------');
186
- toolbox.print.info('');
187
- toolbox.print.info(indent(' ', result.output));
131
+ this.log('');
132
+ this.log(' Output');
133
+ this.log(' ------');
134
+ this.log('');
135
+ this.log(indent(' ', result.output));
188
136
  // Propagate the exit code from the test run
189
- process.exitCode = result.exitCode;
190
- },
137
+ this.exit(result.exitCode);
138
+ }
139
+ }
140
+ exports.default = LocalCommand;
141
+ LocalCommand.description = 'Runs local tests against a Graph Node environment (using Ganache by default).';
142
+ LocalCommand.args = {
143
+ 'local-command': core_1.Args.string({
144
+ required: true,
145
+ }),
146
+ };
147
+ LocalCommand.flags = {
148
+ 'node-logs': core_1.Flags.boolean({
149
+ summary: 'Print the Graph Node logs.',
150
+ }),
151
+ 'ethereum-logs': core_1.Flags.boolean({
152
+ summary: 'Print the Ethereum logs.',
153
+ }),
154
+ 'compose-file': core_1.Flags.string({
155
+ summary: 'Custom Docker Compose file for additional services.',
156
+ }),
157
+ 'node-image': core_1.Flags.string({
158
+ summary: 'Custom Graph Node image to test against.',
159
+ default: 'graphprotocol/graph-node:latest',
160
+ }),
161
+ 'standalone-node': core_1.Flags.string({
162
+ summary: 'Use a standalone Graph Node outside Docker Compose.',
163
+ }),
164
+ 'standalone-node-args': core_1.Flags.string({
165
+ summary: 'Custom arguments to be passed to the standalone Graph Node.',
166
+ dependsOn: ['standalone-node'],
167
+ }),
168
+ 'skip-wait-for-ipfs': core_1.Flags.boolean({
169
+ summary: "Don't wait for IPFS to be up at localhost:15001",
170
+ }),
171
+ 'skip-wait-for-etherium': core_1.Flags.boolean({
172
+ summary: "Don't wait for Ethereum to be up at localhost:18545",
173
+ }),
174
+ 'skip-wait-for-postgres': core_1.Flags.boolean({
175
+ summary: "Don't wait for Postgres to be up at localhost:15432",
176
+ }),
177
+ timeout: core_1.Flags.integer({
178
+ summary: 'Time to wait for service containers in milliseconds.',
179
+ default: 120000,
180
+ }),
191
181
  };
192
182
  /**
193
183
  * Indents all lines of a string
@@ -198,14 +188,14 @@ const indent = (indentation, str) => str
198
188
  // Remove whitespace from empty lines
199
189
  .map(s => s.replace(/^\s+$/g, ''))
200
190
  .join('\n');
201
- const configureTestEnvironment = async (toolbox, tempdir, composeFile, nodeImage) => await (0, spinner_1.withSpinner)(`Configure test environment`, `Failed to configure test environment`, `Warnings configuring test environment`, async () => {
191
+ const configureTestEnvironment = async (tempdir, composeFile, nodeImage) => await (0, spinner_1.withSpinner)(`Configure test environment`, `Failed to configure test environment`, `Warnings configuring test environment`, async () => {
202
192
  // Temporary compose file
203
193
  const tempComposeFile = path_1.default.join(tempdir, 'compose', 'docker-compose.yml');
204
194
  // Copy the compose file to the temporary directory
205
- toolbox.filesystem.copy(composeFile, tempComposeFile);
195
+ gluegun_1.filesystem.copy(composeFile, tempComposeFile);
206
196
  // Substitute the graph-node image with the custom one, if appropriate
207
197
  if (nodeImage) {
208
- await toolbox.patching.replace(tempComposeFile, 'graphprotocol/graph-node:latest', nodeImage);
198
+ await gluegun_1.patching.replace(tempComposeFile, 'graphprotocol/graph-node:latest', nodeImage);
209
199
  }
210
200
  });
211
201
  const waitFor = async (timeout, testFn) => {
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "0.38.1-alpha-20230208031649-b554fda",
2
+ "version": "0.38.1-alpha-20230208145052-fb0a04a",
3
3
  "commands": {
4
4
  "add": {
5
5
  "id": "add",
@@ -132,13 +132,61 @@
132
132
  },
133
133
  "codegen": {
134
134
  "id": "codegen",
135
- "description": "Generates AssemblyScript types for a subgraph",
135
+ "description": "Generates AssemblyScript types for a subgraph.",
136
+ "strict": true,
136
137
  "pluginName": "@graphprotocol/graph-cli",
137
138
  "pluginAlias": "@graphprotocol/graph-cli",
138
139
  "pluginType": "core",
139
140
  "aliases": [],
140
- "flags": {},
141
- "args": {}
141
+ "flags": {
142
+ "output-dir": {
143
+ "name": "output-dir",
144
+ "type": "option",
145
+ "char": "o",
146
+ "summary": "Output directory for generated types.",
147
+ "multiple": false,
148
+ "default": "generated/"
149
+ },
150
+ "skip-migrations": {
151
+ "name": "skip-migrations",
152
+ "type": "boolean",
153
+ "summary": "Skip subgraph migrations.",
154
+ "allowNo": false
155
+ },
156
+ "watch": {
157
+ "name": "watch",
158
+ "type": "boolean",
159
+ "char": "w",
160
+ "summary": "Regenerate types when subgraph files change.",
161
+ "allowNo": false
162
+ },
163
+ "uncrashable": {
164
+ "name": "uncrashable",
165
+ "type": "boolean",
166
+ "char": "u",
167
+ "summary": "Generate Float Subgraph Uncrashable helper file.",
168
+ "allowNo": false
169
+ },
170
+ "uncrashable-config": {
171
+ "name": "uncrashable-config",
172
+ "type": "option",
173
+ "summary": "Directory for uncrashable config.",
174
+ "multiple": false,
175
+ "dependsOn": [
176
+ "uncrashable"
177
+ ],
178
+ "default": "uncrashable-config.yaml",
179
+ "aliases": [
180
+ "uc"
181
+ ]
182
+ }
183
+ },
184
+ "args": {
185
+ "subgraph-manifest": {
186
+ "name": "subgraph-manifest",
187
+ "required": true
188
+ }
189
+ }
142
190
  },
143
191
  "create": {
144
192
  "id": "create",
@@ -316,13 +364,85 @@
316
364
  },
317
365
  "local": {
318
366
  "id": "local",
319
- "description": "Runs local tests against a Graph Node environment (using Ganache by default)",
367
+ "description": "Runs local tests against a Graph Node environment (using Ganache by default).",
368
+ "strict": true,
320
369
  "pluginName": "@graphprotocol/graph-cli",
321
370
  "pluginAlias": "@graphprotocol/graph-cli",
322
371
  "pluginType": "core",
323
372
  "aliases": [],
324
- "flags": {},
325
- "args": {}
373
+ "flags": {
374
+ "node-logs": {
375
+ "name": "node-logs",
376
+ "type": "boolean",
377
+ "summary": "Print the Graph Node logs.",
378
+ "allowNo": false
379
+ },
380
+ "ethereum-logs": {
381
+ "name": "ethereum-logs",
382
+ "type": "boolean",
383
+ "summary": "Print the Ethereum logs.",
384
+ "allowNo": false
385
+ },
386
+ "compose-file": {
387
+ "name": "compose-file",
388
+ "type": "option",
389
+ "summary": "Custom Docker Compose file for additional services.",
390
+ "multiple": false
391
+ },
392
+ "node-image": {
393
+ "name": "node-image",
394
+ "type": "option",
395
+ "summary": "Custom Graph Node image to test against.",
396
+ "multiple": false,
397
+ "default": "graphprotocol/graph-node:latest"
398
+ },
399
+ "standalone-node": {
400
+ "name": "standalone-node",
401
+ "type": "option",
402
+ "summary": "Use a standalone Graph Node outside Docker Compose.",
403
+ "multiple": false
404
+ },
405
+ "standalone-node-args": {
406
+ "name": "standalone-node-args",
407
+ "type": "option",
408
+ "summary": "Custom arguments to be passed to the standalone Graph Node.",
409
+ "multiple": false,
410
+ "dependsOn": [
411
+ "standalone-node"
412
+ ]
413
+ },
414
+ "skip-wait-for-ipfs": {
415
+ "name": "skip-wait-for-ipfs",
416
+ "type": "boolean",
417
+ "summary": "Don't wait for IPFS to be up at localhost:15001",
418
+ "allowNo": false
419
+ },
420
+ "skip-wait-for-etherium": {
421
+ "name": "skip-wait-for-etherium",
422
+ "type": "boolean",
423
+ "summary": "Don't wait for Ethereum to be up at localhost:18545",
424
+ "allowNo": false
425
+ },
426
+ "skip-wait-for-postgres": {
427
+ "name": "skip-wait-for-postgres",
428
+ "type": "boolean",
429
+ "summary": "Don't wait for Postgres to be up at localhost:15432",
430
+ "allowNo": false
431
+ },
432
+ "timeout": {
433
+ "name": "timeout",
434
+ "type": "option",
435
+ "summary": "Time to wait for service containers in milliseconds.",
436
+ "multiple": false,
437
+ "default": 120000
438
+ }
439
+ },
440
+ "args": {
441
+ "local-command": {
442
+ "name": "local-command",
443
+ "required": true
444
+ }
445
+ }
326
446
  },
327
447
  "remove": {
328
448
  "id": "remove",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@graphprotocol/graph-cli",
3
- "version": "0.38.1-alpha-20230208031649-b554fda",
3
+ "version": "0.38.1-alpha-20230208145052-fb0a04a",
4
4
  "description": "CLI for building for and deploying to The Graph",
5
5
  "license": "(Apache-2.0 OR MIT)",
6
6
  "engines": {