@solidactions/cli 0.2.0 → 0.2.1
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 +1 -0
- package/dist/commands/deploy.js +1 -1
- package/dist/commands/env-pull.js +1 -1
- package/dist/commands/webhooks.js +1 -1
- package/dist/index.js +3 -3
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -39,6 +39,7 @@ solidactions deploy <project-name> <path>
|
|
|
39
39
|
| `schedule:set <project> <cron>` | Set a cron schedule for a workflow |
|
|
40
40
|
| `schedule:list <project>` | List schedules for a project |
|
|
41
41
|
| `schedule:delete <project> <id>` | Delete a schedule |
|
|
42
|
+
| `webhooks <project>` | List webhook URLs for a project |
|
|
42
43
|
|
|
43
44
|
See [docs/cli.md](docs/cli.md) for full documentation.
|
|
44
45
|
|
package/dist/commands/deploy.js
CHANGED
|
@@ -259,7 +259,7 @@ async function deploy(projectName, sourcePath, options = {}) {
|
|
|
259
259
|
process.exit(1);
|
|
260
260
|
}
|
|
261
261
|
const sourceDir = sourcePath ? path_1.default.resolve(sourcePath) : process.cwd();
|
|
262
|
-
const environment = options.env || '
|
|
262
|
+
const environment = options.env || 'dev';
|
|
263
263
|
if (!fs_1.default.existsSync(sourceDir)) {
|
|
264
264
|
console.error(chalk_1.default.red(`Source directory not found: ${sourceDir}`));
|
|
265
265
|
process.exit(1);
|
|
@@ -31,7 +31,7 @@ async function envPull(projectName, options = {}) {
|
|
|
31
31
|
console.error(chalk_1.default.red('Not initialized. Run "solidactions init <api-key>" first.'));
|
|
32
32
|
process.exit(1);
|
|
33
33
|
}
|
|
34
|
-
const environment = options.env || '
|
|
34
|
+
const environment = options.env || 'dev';
|
|
35
35
|
// Build the project slug for lookup
|
|
36
36
|
const projectSlug = environment === 'production'
|
|
37
37
|
? projectName
|
|
@@ -13,7 +13,7 @@ async function webhookList(projectName, options = {}) {
|
|
|
13
13
|
console.error(chalk_1.default.red('Not initialized. Run "solidactions init <api-key>" first.'));
|
|
14
14
|
process.exit(1);
|
|
15
15
|
}
|
|
16
|
-
const environment = options.env || '
|
|
16
|
+
const environment = options.env || 'dev';
|
|
17
17
|
const projectSlug = environment === 'production' ? projectName : `${projectName}-${environment}`;
|
|
18
18
|
console.log(chalk_1.default.blue(`Webhooks for project "${projectName}"${environment !== 'production' ? ` (${environment})` : ''}:`));
|
|
19
19
|
try {
|
package/dist/index.js
CHANGED
|
@@ -22,7 +22,7 @@ const program = new commander_1.Command();
|
|
|
22
22
|
program
|
|
23
23
|
.name('solidactions')
|
|
24
24
|
.description('SolidActions CLI - Deploy and manage workflow automation')
|
|
25
|
-
.version('0.1
|
|
25
|
+
.version('0.2.1');
|
|
26
26
|
// =============================================================================
|
|
27
27
|
// Authentication & Configuration
|
|
28
28
|
// =============================================================================
|
|
@@ -55,7 +55,7 @@ program
|
|
|
55
55
|
.description('Deploy a project to SolidActions')
|
|
56
56
|
.argument('<project-name>', 'Project name (will be created if it doesn\'t exist)')
|
|
57
57
|
.argument('[path]', 'Source directory to deploy (defaults to current directory)')
|
|
58
|
-
.option('-e, --env <environment>', 'Target environment (production/staging/dev)', '
|
|
58
|
+
.option('-e, --env <environment>', 'Target environment (production/staging/dev)', 'dev')
|
|
59
59
|
.option('--create', 'Create environment project if it doesn\'t exist')
|
|
60
60
|
.action((projectName, path, options) => {
|
|
61
61
|
(0, deploy_1.deploy)(projectName, path, options);
|
|
@@ -154,7 +154,7 @@ program
|
|
|
154
154
|
.command('env:pull')
|
|
155
155
|
.description('Pull resolved environment variables to a local file')
|
|
156
156
|
.argument('<project>', 'Project name')
|
|
157
|
-
.option('-e, --env <environment>', 'Environment (production/staging/dev)', '
|
|
157
|
+
.option('-e, --env <environment>', 'Environment (production/staging/dev)', 'dev')
|
|
158
158
|
.option('-o, --output <file>', 'Output file path (defaults to .env or .env.{environment})')
|
|
159
159
|
.option('-y, --yes', 'Skip confirmation for secrets')
|
|
160
160
|
.action((project, options) => {
|