@cloud-cli/dc 1.2.0 → 1.3.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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/index.ts +14 -16
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cloud-cli/dc",
3
- "version": "1.2.0",
3
+ "version": "1.3.0",
4
4
  "main": "./dist/index.js",
5
5
  "description": "Run services with docker compose",
6
6
  "type": "module",
package/src/index.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { getConfig, init } from '@cloud-cli/cli';
1
+ import { getConfig, init, help } from '@cloud-cli/cli';
2
2
  import { exec } from '@cloud-cli/exec';
3
3
  import { existsSync, mkdirSync } from 'node:fs';
4
4
  import { readFile, readdir, rm, writeFile } from 'node:fs/promises';
@@ -122,21 +122,19 @@ export default {
122
122
  binaryAndArgs.binary = 'exit';
123
123
  binaryAndArgs.args.push('1');
124
124
  },
125
- help: () => ({
126
- description: 'Manage Docker Compose services',
127
- commands: {
128
- 'dc up [name]': 'Start services (optional name to start specific service)',
129
- 'dc down [name]': 'Stop services (optional name to stop specific service)',
130
- 'dc list': 'List Compose files/services',
131
- 'dc show [name]': 'Show content of a Compose file',
132
- 'dc set [name]': 'Update content of a Compose file',
133
- 'dc remove [name]': 'Remove a Compose file',
134
- },
135
- options: {
136
- name: 'Service/Compose file name',
137
- content: 'Docker Compose YAML content (for set command)',
138
- },
139
- }),
125
+ [help]: () => `Manage Docker Compose services
126
+
127
+ Available commands:
128
+ start - Start services (optional name to start specific service)
129
+ stop - Stop services (optional name to stop specific service)
130
+ update - Update Docker Compose services
131
+ remove - Remove a Compose file
132
+ show - Show content of a Compose file
133
+ list - List Compose files/services
134
+
135
+ Options:
136
+ name - Service/Compose file name
137
+ content - Docker Compose YAML content (for update command)`,
140
138
  start,
141
139
  stop,
142
140
  update,