CLI: Consistent name/ID resolution #23
No reviewers
Labels
No labels
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
geomind_code/my_hypervisor!23
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "development_fix_cli"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
related issues: #6
This PR implements:
1- tab-completions for vm names/ids
2- name/id prefix resolution
@ -95,0 +107,4 @@_ => {let ids: Vec<&str> = matches.iter().map(|s| s.id.as_str()).collect();Err(ChvmError::VmAmbiguous(prefix.to_string(), ids.join(", ")))}we can add sort after getting ids to make sure output is consistent each time
instead of having ordering changes each time