Skip to content

Commit

Permalink
chore(dbml-cli): change cli docs
Browse files Browse the repository at this point in the history
  • Loading branch information
phuongduyphan committed Aug 15, 2019
1 parent cffa6d9 commit ed13038
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
4 changes: 2 additions & 2 deletions CHANGELOG.md
@@ -1,4 +1,4 @@
## Unreleased (2019-08-15)
## v0.1.0 (2019-08-15)

#### :boom: Breaking Change
* `dbml-cli`
Expand All @@ -7,4 +7,4 @@
* [#15](https://github.com/holistics/dbml/pull/15) feat: add @dbml/core package ([@phuongduyphan](https://github.com/phuongduyphan))

#### Committers: 1
- Phuong Duy Phan ([@phuongduyphan](https://github.com/phuongduyphan))
- Phuong Duy Phan ([@phuongduyphan](https://github.com/phuongduyphan))
2 changes: 1 addition & 1 deletion packages/dbml-cli/package.json
Expand Up @@ -42,5 +42,5 @@
"^.+\\.js$": "babel-jest"
}
},
"gitHead": "c3380a7d206db05f864d4f8842d802c35e09a87d"
"gitHead": "b8fa11de1fc44f3a24f17eb94a1472347d63bccc"
}
5 changes: 3 additions & 2 deletions packages/dbml-cli/src/cli/index.js
Expand Up @@ -2,16 +2,17 @@ import program from 'commander';
import importHandler from './import';
import exportHandler from './export';
import visualizeHandler from './visualize';

import projectInfo from '../../package.json';

export default function cli (args) {
program.version('0.0.1');
program.version(projectInfo.version);

program
.command('import <pathspec>')
.option('--mysql')
.option('--postgres')
.option('--json')
.option('--schemarb')
.option('-o, --output <pathspec>', 'Generated file location', './')
.action(importHandler);

Expand Down

0 comments on commit ed13038

Please sign in to comment.