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

hq worker info <worker-id> #54

Merged
merged 1 commit into from Jun 23, 2021
Merged

Conversation

User3574
Copy link
Contributor

@User3574 User3574 commented Jun 16, 2021

Closes: #22

@@ -45,3 +46,52 @@ pub fn print_worker_info(workers: Vec<WorkerInfo>, gsettings: &GlobalSettings) {
]);
assert!(print_stdout(table).is_ok());
}

pub fn print_worker_details(worker: WorkerDetail, gsettings: &GlobalSettings) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

Please do not duplicate print_worker_configuration. If you need to modify it, try to refactor by introducing a new function that is shared by both functions. However as it seems it may be just a one function now

@@ -1,8 +1,9 @@
use cli_table::format::Justify;
use cli_table::{print_stdout, Cell, Color, Style, Table};
use cli_table::{print_stdout, Cell, Color, Style, Table, Row};
Copy link
Collaborator

Choose a reason for hiding this comment

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

Please remove all warnings.

src/bin/hq.rs Outdated
@@ -123,6 +129,8 @@ enum WorkerCommand {
List(WorkerListOpts),
/// Hwdetect
Hwdetect,
/// Display details about worker
Details(WorkerDetailsOpts),
Copy link
Collaborator

Choose a reason for hiding this comment

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

I would still prefer "hq worker info " as it is more compatible with the rest of the terminology. However, if there is a good reason why call it "detail", lets discuss it.

@User3574 User3574 changed the title hq worker details <worker-id> hq worker info <worker-id> Jun 22, 2021
@Kobzol
Copy link
Collaborator

Kobzol commented Jun 22, 2021

See here: #53 (comment) on how to merge changes from main into PR branches (rebase + force push).

@spirali spirali merged commit c823b54 into It4innovations:main Jun 23, 2021
@spirali
Copy link
Collaborator

spirali commented Jun 23, 2021

@User3574 Thank you

@User3574 User3574 deleted the worker_info branch July 15, 2021 08:00
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.

Command hq worker info <id>
3 participants