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

v1.8.1 #129

Merged
merged 27 commits into from
Dec 21, 2022
Merged

v1.8.1 #129

merged 27 commits into from
Dec 21, 2022

Conversation

annybs
Copy link
Member

@annybs annybs commented Dec 21, 2022

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 new repl namespace has been established which includes preexisting input handlers and adds new printing functions, simplifying text display (and coding thereof) across all commands. The max-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.

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
@annybs annybs self-assigned this Dec 21, 2022
Copy link
Member

@adamkdean adamkdean left a 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
Copy link
Member

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
Copy link
Member

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
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

2021

@annybs annybs merged commit ec00e27 into master Dec 21, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants