Skip to content

Commit

Permalink
Add diagram
Browse files Browse the repository at this point in the history
  • Loading branch information
piotrze committed Oct 11, 2023
1 parent d6150f2 commit c3aa2a2
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 5 deletions.
14 changes: 14 additions & 0 deletions bin/modules.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# Modules

```mermaid
sequenceDiagram
actor Dev
participant poscli
participant filesystem
participant Platform
participant Portal
Dev->>poscli: pos-cli modules setup
poscli->>filesystem: read local modules
poscli->>Portal: create pos-modules.lock.json
```

10 changes: 5 additions & 5 deletions bin/pos-cli-modules.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@ const program = require('commander');

program
.name('pos-cli modules')
.command('list [environment]', 'list installed modules on the instance')
.command('pull [environment] <name>', 'pull a module for the instance')
.command('remove [environment] <name>', 'remove module from the instance (removes configuration and data)')
.command('setup', 'initialize module lock file for the instance')
.command('init <name>', 'initialize a module with the starter structure')
.command('list [environment]', 'list installed modules')
.command('pull [environment] <name>', 'pull a module for instance')
.command('push', 'publish module version')
.command('remove [environment] <name>', 'remove module from instance (removes configuration and data)')
.command('version [version] --package', 'create a new version of the module')
.command('setup', 'initialize module lock file')
.command('push', 'publish module version')
.parse(process.argv);

0 comments on commit c3aa2a2

Please sign in to comment.