@heroku/skynet 2.0.2 → 2.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import SkynetAPI from '../lib/skynet.js';
|
|
2
2
|
import { Command } from '@heroku-cli/command';
|
|
3
|
-
import {
|
|
3
|
+
import { hux } from '@heroku/heroku-cli-util';
|
|
4
4
|
export default class Allowlists extends Command {
|
|
5
5
|
static id = 'skynet:allowlists';
|
|
6
6
|
static aliases = ['skynet:allowlists'];
|
|
@@ -14,7 +14,7 @@ export default class Allowlists extends Command {
|
|
|
14
14
|
let response = await skynet.allowlists();
|
|
15
15
|
response = JSON.parse(response);
|
|
16
16
|
if (Object.keys(response).length > 0) {
|
|
17
|
-
|
|
17
|
+
hux.table(response, {
|
|
18
18
|
Value: {},
|
|
19
19
|
Notes: {},
|
|
20
20
|
CreatedAt: {},
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import SkynetAPI from '../../lib/skynet.js';
|
|
2
2
|
import { Command } from '@heroku-cli/command';
|
|
3
|
-
import {
|
|
3
|
+
import { hux } from '@heroku/heroku-cli-util';
|
|
4
4
|
export default class GetCategories extends Command {
|
|
5
5
|
static id = 'skynet:categories';
|
|
6
6
|
static aliases = ['skynet:categories'];
|
|
@@ -13,7 +13,7 @@ export default class GetCategories extends Command {
|
|
|
13
13
|
const skynet = new SkynetAPI(this.heroku.auth);
|
|
14
14
|
let response = await skynet.categories();
|
|
15
15
|
response = JSON.parse(response);
|
|
16
|
-
|
|
16
|
+
hux.table(response, {
|
|
17
17
|
Category: {},
|
|
18
18
|
Description: {}
|
|
19
19
|
});
|
package/oclif.manifest.json
CHANGED