Comparing version 3.1.18 to 3.1.19
{ | ||
"name": "akkeris", | ||
"version": "3.1.18", | ||
"version": "3.1.19", | ||
"description": "Akkeris CLI", | ||
@@ -8,3 +8,5 @@ "main": "aka.js", | ||
"test": "echo \"Error: no test specified\" && exit 1", | ||
"dev": "node -r dotenv/config aka.js" | ||
"aka": "node -r dotenv/config aka.js", | ||
"ak": "npm run aka", | ||
"akkeris": "npm run aka" | ||
}, | ||
@@ -11,0 +13,0 @@ "bin": { |
@@ -170,3 +170,3 @@ /* eslint-disable no-await-in-loop */ | ||
return `**+ ${addon_service.human_name} ${addon_service.name} $${addon_service.price.cents / 100}/${addon_service.price.unit}** | ||
***Id:*** ${addon_service.id} | ||
***Id:*** ${addon_service.id} | ||
***Description:*** ${addon_service.description} | ||
@@ -173,0 +173,0 @@ ${addon_service.attributes ? Object.keys(addon_service.attributes).map((key) => ` ***${key.replace(/_/g, ' ').replace(/^(\w)|\s(\w)/g, (c) => c.toUpperCase())}:*** ${addon_service.attributes[key]}`).join('\n') : ''}\n`; |
@@ -11,3 +11,3 @@ const assert = require('assert'); | ||
function format_warning(ps, form_dynos) { | ||
return `\n~~~⚠~~~ ${ps.type} dyno type has ${form_dynos.length} dynos, but ${ps.quantity} ${ps.quantity === 1 ? 'has' : 'have'} been requested. | ||
return `\n~~~⚠~~~ ${ps.type} dyno type has ${form_dynos.length} dynos, but ${ps.quantity} ${ps.quantity === 1 ? 'has' : 'have'} been requested. | ||
~~~⚠~~~ It may be scaling, crashing, restarting or deploying.`; | ||
@@ -207,3 +207,3 @@ } | ||
assert.ok(args.TYPE, 'No type was specified, this should be "web" if you need a web service, or "worker".'); | ||
if (!args.size && !args.quantity && args.quantity !== 0 && !args.healthcheck && !args.removeHealthcheck && typeof (args.command) === 'undefined' && !args.port) { | ||
if (!args.size && !args.quantity && args.quantity !== 0 && !args.healthcheck && !args.removeHealthcheck && !args.removeCommand && typeof (args.command) === 'undefined' && !args.port) { | ||
appkit.terminal.error(new Error('No new changes found for updating dyno formation.')); | ||
@@ -231,2 +231,5 @@ return; | ||
} | ||
if (args.removeCommand) { | ||
payload['remove-command'] = true; | ||
} | ||
@@ -503,2 +506,6 @@ const task = appkit.terminal.task(`Updating dyno for app ^^^${args.app}^^^, type **${args.TYPE}**`); | ||
}, | ||
}; | ||
const require_formation_update_option = { | ||
...require_formation_create_option, | ||
removeHealthcheck: { | ||
@@ -509,2 +516,8 @@ alias: 'r', | ||
}, | ||
removeCommand: { | ||
alias: 'x', | ||
demand: false, | ||
boolean: true, | ||
description: 'Remove the set command and default to what is specified in the docker file', | ||
}, | ||
}; | ||
@@ -577,3 +590,3 @@ | ||
.command('ps:create TYPE', 'Create a new dyno', require_formation_create_option, create.bind(null, appkit)) | ||
.command('ps:update TYPE', 'Update dyno settings', require_formation_create_option, update.bind(null, appkit)) | ||
.command('ps:update TYPE', 'Update dyno settings', require_formation_update_option, update.bind(null, appkit)) | ||
.command('ps:forward PORT', 'Forward web traffic to specific port', require_app_option, forward.bind(null, appkit)) | ||
@@ -602,4 +615,4 @@ .command('ps:destroy TYPE', 'Permanently delete a dyno', require_confirm_app_option, destroy.bind(null, appkit)) | ||
group: 'ps', | ||
help: 'manage dynos (servers) including workers', | ||
help: '!!! manage dynos (servers) including workers', | ||
primary: true, | ||
}; |
@@ -95,10 +95,10 @@ # Akkeris Command Line Interface | ||
# Run the local version of the Akkeris CLI by replacing `aka` with `npm run dev` | ||
npm run dev | ||
# Run the local version of the Akkeris CLI by replacing `aka` with `npm run aka` | ||
npm run aka | ||
# Append any `aka` sub-commands onto the end, such as | ||
npm run dev auth:login | ||
npm run dev apps | ||
npm run dev squirrel | ||
npm run aka auth:login | ||
npm run aka apps | ||
npm run aka squirrel | ||
# And you're off to the races! | ||
``` |
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
277946
7389
11