Skip to content

Commit

Permalink
First commit
Browse files Browse the repository at this point in the history
  • Loading branch information
pviti committed Mar 23, 2021
0 parents commit 0ec134e
Show file tree
Hide file tree
Showing 15 changed files with 9,536 additions and 0 deletions.
1 change: 1 addition & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/lib
14 changes: 14 additions & 0 deletions .eslintrc
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"
}
}
10 changes: 10 additions & 0 deletions .gitignore
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
51 changes: 51 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
@commercelayer/cli-plugin-seeder
================================

Commerce Layer CLI seeder plugin

[![oclif](https://img.shields.io/badge/cli-oclif-brightgreen.svg)](https://oclif.io)
[![Version](https://img.shields.io/npm/v/@commercelayer/cli-plugin-seeder.svg)](https://npmjs.org/package/@commercelayer/cli-plugin-seeder)
[![Downloads/week](https://img.shields.io/npm/dw/@commercelayer/cli-plugin-seeder.svg)](https://npmjs.org/package/@commercelayer/cli-plugin-seeder)
[![License](https://img.shields.io/npm/l/@commercelayer/cli-plugin-seeder.svg)](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 -->
5 changes: 5 additions & 0 deletions bin/run
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'))
3 changes: 3 additions & 0 deletions bin/run.cmd
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
@echo off

node "%~dp0\run" %*
Loading

0 comments on commit 0ec134e

Please sign in to comment.