Comparing version 4.8.2 to 4.9.0
@@ -0,1 +1,8 @@ | ||
# [4.9.0](https://github.com/oclif/cli-ux/compare/v4.8.2...v4.9.0) (2018-10-10) | ||
### Features | ||
* add tree ([#57](https://github.com/oclif/cli-ux/issues/57)) ([8d742a7](https://github.com/oclif/cli-ux/commit/8d742a7)) | ||
## [4.8.2](https://github.com/oclif/cli-ux/compare/v4.8.1...v4.8.2) (2018-09-13) | ||
@@ -2,0 +9,0 @@ |
@@ -13,4 +13,5 @@ export declare const deps: { | ||
readonly table: typeof import("./styled/table").default; | ||
readonly tree: typeof import("./styled/tree").default; | ||
readonly wait: (ms?: number) => Promise<{}>; | ||
}; | ||
export default deps; |
@@ -15,2 +15,3 @@ "use strict"; | ||
get table() { return fetch('./styled/table').default; }, | ||
get tree() { return fetch('./styled/tree').default; }, | ||
get wait() { return fetch('./wait').default; }, | ||
@@ -17,0 +18,0 @@ }; |
@@ -23,2 +23,3 @@ import * as Errors from '@oclif/errors'; | ||
readonly table: typeof Table.default; | ||
readonly tree: typeof import("./styled/tree").default; | ||
readonly open: typeof import("./open").default; | ||
@@ -52,2 +53,3 @@ readonly wait: (ms?: number) => Promise<{}>; | ||
readonly table: typeof Table.default; | ||
readonly tree: typeof import("./styled/tree").default; | ||
readonly open: typeof import("./open").default; | ||
@@ -54,0 +56,0 @@ readonly wait: (ms?: number) => Promise<{}>; |
@@ -32,2 +32,3 @@ "use strict"; | ||
get table() { return deps_1.default.table; }, | ||
get tree() { return deps_1.default.tree; }, | ||
get open() { return deps_1.default.open; }, | ||
@@ -34,0 +35,0 @@ get wait() { return deps_1.default.wait; }, |
{ | ||
"name": "cli-ux", | ||
"description": "cli IO utilities", | ||
"version": "4.8.2", | ||
"version": "4.9.0", | ||
"author": "Jeff Dickey @jdxcode", | ||
@@ -26,3 +26,4 @@ "bugs": "https://github.com/oclif/cli-ux/issues", | ||
"supports-color": "^5.5.0", | ||
"supports-hyperlinks": "^1.0.1" | ||
"supports-hyperlinks": "^1.0.1", | ||
"treeify": "^1.1.0" | ||
}, | ||
@@ -47,4 +48,4 @@ "devDependencies": { | ||
"eslint": "^5.5.0", | ||
"eslint-config-oclif": "^3.0.0", | ||
"fancy-test": "^1.4.0", | ||
"eslint-config-oclif": "^3.1.0", | ||
"fancy-test": "^1.4.1", | ||
"husky": "^0.14.3", | ||
@@ -51,0 +52,0 @@ "mocha": "^5.2.0", |
@@ -105,1 +105,25 @@ cli-ux | ||
``` | ||
# cli.tree | ||
Generate a tree and display it | ||
```typescript | ||
let tree = cli.tree() | ||
tree.insert('foo') | ||
tree.insert('bar') | ||
let subtree = cli.tree() | ||
subtree.insert('qux') | ||
tree.nodes.bar.insert('baz', subtree) | ||
tree.display() | ||
``` | ||
Outputs: | ||
```shell | ||
├─ foo | ||
└─ bar | ||
└─ baz | ||
└─ qux | ||
``` |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
74165
38
1527
129
20
15
+ Addedtreeify@^1.1.0
+ Addedtreeify@1.1.0(transitive)