-
Notifications
You must be signed in to change notification settings - Fork 3
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
v1.8.1 #129
Conversation
improves approachability of the code as a whole. no significant functional changes, just reorganisation
makes it a little easier to run 'npm run dev' and 'npm run build' for testing, which will always default to testnet; mainnet builds are not normally used informally
cli differs from other apps in that we use long lines extensively in repl output, so the rule is very restrictive and has forced weird workarounds to keep linter warnings at 0. disabling this and using IDE word-wrap instead makes it more approachable, particularly for upcoming repl changes
this simplifies printing of multi-line text and newline handling, including automatic indentation stripping
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
@@ -0,0 +1,39 @@ | |||
// Copyright (C) 2021 Edge Network Technologies Limited |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
2021
@@ -0,0 +1,53 @@ | |||
// Copyright (C) 2021 Edge Network Technologies Limited |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
2021
@@ -0,0 +1,22 @@ | |||
// Copyright (C) 2021 Edge Network Technologies Limited |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
2021
Edge CLI v1.8.1 is the first minor version increment since March, and includes a slew of improvements.
The entire codebase has been reviewed, reorganised and refactored to improve maintainability. CLI commands are now located in individual files, rather than collected by domain. CLI options are now defined consistently across the command tree in a single
cli
namespace, reducing overlapping imports. A newrepl
namespace has been established which includes preexisting input handlers and adds new printing functions, simplifying text display (and coding thereof) across all commands. Themax-len
ESLint rule has been disabled to eliminate the need for awkward style workarounds. As well as making it easier for Edge core engineers to improve CLI, we continue to encourage community contributions and hope these updates will make the code more approachable. Your feedback is very welcome on Discord or in issues/PRs.The following existing issues have been resolved:
edge stake ls
now supports filters: pass-t (stargate|gateway|host)
to filter by stake type, or-s (assigned|released|unassigned|unlocked|unlocking)
to filter by status. These filters can also be used together.edge device add
now supports adding a device to a stake by type rather than needing to specify the ID. For example,edge device add -t host
will automatically select an unassigned Host stake if one is available.Finally, some dependencies have been updated and npm audit issues have been resolved.