-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 0ec134e
Showing
15 changed files
with
9,536 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
/lib |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
{ | ||
"extends": [ | ||
"oclif", | ||
"oclif-typescript" | ||
], | ||
"rules": { | ||
// "no-console": "off", | ||
"indent": "off", | ||
"object-curly-spacing": "off", | ||
"padded-blocks": "off", | ||
"no-multiple-empty-lines": "off", | ||
"array-bracket-spacing": "off" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
*-debug.log | ||
*-error.log | ||
/.nyc_output | ||
/dist | ||
/lib | ||
/tmp | ||
/yarn.lock | ||
node_modules | ||
.DS_Store | ||
.editorconfig |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
@commercelayer/cli-plugin-seeder | ||
================================ | ||
|
||
Commerce Layer CLI seeder plugin | ||
|
||
[](https://oclif.io) | ||
[](https://npmjs.org/package/@commercelayer/cli-plugin-seeder) | ||
[](https://npmjs.org/package/@commercelayer/cli-plugin-seeder) | ||
[](https://github.com/commercelayer/cli-plugin-seeder/blob/master/package.json) | ||
|
||
<!-- toc --> | ||
* [Usage](#usage) | ||
* [Commands](#commands) | ||
<!-- tocstop --> | ||
# Usage | ||
<!-- usage --> | ||
```sh-session | ||
$ npm install -g @commercelayer/cli-plugin-seeder | ||
$ cl-seeder COMMAND | ||
running command... | ||
$ cl-seeder (-v|--version|version) | ||
@commercelayer/cli-plugin-seeder/0.0.2 darwin-x64 node-v14.16.0 | ||
$ cl-seeder --help [COMMAND] | ||
USAGE | ||
$ cl-seeder COMMAND | ||
... | ||
``` | ||
<!-- usagestop --> | ||
# Commands | ||
<!-- commands --> | ||
* [`cl-seeder seed`](#cl-seeder-seed) | ||
|
||
## `cl-seeder seed` | ||
|
||
Commerce Layer seeder | ||
|
||
``` | ||
USAGE | ||
$ cl-seeder seed | ||
OPTIONS | ||
-b, --businessModel=multi_market|custom [default: multi_market] the kind of business model you want to import | ||
-m, --maxItems=maxItems [default: all] the maximum number of SKUs that will be imported | ||
-o, --organization=organization (required) the slug of your organization | ||
-u, --resourcesUrl=resourcesUrl [default: https://data.commercelayer.app/seed] the resources URL or local | ||
path | ||
``` | ||
|
||
_See code: [src/commands/seed.ts](https://github.com/commercelayer/cli-plugin-seeder/blob/v0.0.2/src/commands/seed.ts)_ | ||
<!-- commandsstop --> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
#!/usr/bin/env node | ||
|
||
require('@oclif/command').run() | ||
.then(require('@oclif/command/flush')) | ||
.catch(require('@oclif/errors/handle')) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
@echo off | ||
|
||
node "%~dp0\run" %* |
Oops, something went wrong.