Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multi-instance, limit number, and add tests, warn on failed auth in region #7

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

allenluce
Copy link

@allenluce allenluce commented Mar 6, 2019

Multiple instances be now be given on the command line. The resulting output table contains the instance type as well.

If a particular region refuses auth the process continues (instead of bombing out).

I've added -n to limit the number of output items.

I've also added a few tests using Mocha and modified the main module to support them.

There's also more promisification done. As well as local'ing some vars and doing other refactors. This tests clean under node versions 6 through 12.

@allenluce allenluce changed the title Multi-instance, limit number, and add tests Multi-instance, limit number, and add tests, warn on failed auth in region Jul 10, 2019
You can now supply multiple instances on the command line and it'll
actually work. It'll now output a table with instance type in it as
well.

The -n flag limits the number of line items to a specific count.

A testing framework is added. The main module is modified a bit to
support being run in test.
This does more promisification of the call chain in order to keep
things consistent (i.e. no errors being spit to console from within
the promise chain: the final reject is responsible for that).

I've noticed intermittent problems with certain regions refusing
auth. This adds error handling to report when that happens but will
continue through other regions.

This also makes some things local instead of global. Using this with
lodash's map function streamlines things. It also makes the individual
functions callable as a library (in the future).

I've removed use of command.action() because the script doesn't
actually define commands. Using command.args after parsing is more
straightforward.

Various minor refactors and validations are done.
@allenluce
Copy link
Author

@arithmetric got time to review?

@allenluce
Copy link
Author

@arithmetric I've some other changes to put up when this one gets merged.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant