@heroku/skynet 1.6.3 → 1.6.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.
@@ -41,13 +41,14 @@ async function run (context) {
41
41
 
42
42
  if (file) {
43
43
  let apps = await readlines(file)
44
- await cli.action(`bulk app-owner suspension for ${cli.color.cyan(apps.length)} apps.`, skynet.bulkSuspendAppOwner(apps.join(), notes, category))
44
+ let response = await skynet.bulkSuspendAppOwner(apps.join(), notes, category)
45
+ cli.log(response)
45
46
  } else {
46
47
  if (!app) {
47
48
  throw new Error('Required flag: --owner OWNER or --infile FILE')
48
49
  }
49
50
 
50
- let response = await cli.action(`suspending the owner of ${cli.color.cyan(app)}`, skynet.suspendAppOwner(app, notes, category, force))
51
+ let response = await skynet.suspendAppOwner(app, notes, category, force)
51
52
  response = JSON.parse(response)
52
53
  cli.log(`${response.status}. ${response.message}`)
53
54
  }
@@ -42,13 +42,14 @@ async function run (context) {
42
42
 
43
43
  if (file) {
44
44
  let users = await readlines(file)
45
- await cli.action(`bulk user suspension for ${cli.color.cyan(users.length)} users.`, skynet.bulkSuspendUsers(users.join(), notes, category))
45
+ let response = await skynet.bulkSuspendUsers(users.join(), notes, category)
46
+ cli.log(response)
46
47
  } else {
47
48
  if (!user) {
48
49
  throw new Error('Required flag: --user USER or --infile FILE')
49
50
  }
50
51
 
51
- let response = await cli.action(`suspending ${cli.color.cyan(user)}`, skynet.suspendUser(user, notes, category, notify, force))
52
+ let response = await skynet.suspendUser(user, notes, category, notify, force)
52
53
  response = JSON.parse(response)
53
54
  cli.log(`${response.status}. ${response.message}`)
54
55
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@heroku/skynet",
3
- "version": "1.6.3",
3
+ "version": "1.6.4",
4
4
  "description": "use Skynet from Heroku CLI",
5
5
  "main": "index.js",
6
6
  "author": "Bob Argenbright @byt3smith",