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

Get command #353

Merged
merged 2 commits into from
Dec 15, 2022
Merged

Get command #353

merged 2 commits into from
Dec 15, 2022

Conversation

marc-48k
Copy link
Contributor

@marc-48k marc-48k commented Dec 15, 2022

#302 adds the ability to retrieve individual configuration items via the get command.

Examples:

Help

$tart get monterey-base --help 
OVERVIEW: Get a VM's configuration

USAGE: tart get <name> [--cpu] [--memory] [--disk-size] [--display]

ARGUMENTS:
  <name>                  VM name.

OPTIONS:
  --cpu                   Number of VM CPUs.
  --memory              VM memory size in megabytes.
  --disk-size             Disk size in gigabytes.
  --display               VM display resolution in a format of
                          <width>x<height>. For example, 1200x800.
  --version               Show the version.
  -h, --help              Show help information.

Get CPU

$tart get monterey-base --cpu 
4

Error - Get 2 things

$tart get monterey-base --cpu --disk-size
Error: Options --cpu, --memory, --disk-size and --display are mutually exclusive
Usage: tart get <name> [--cpu] [--memory] [--disk-size] [--display]
  See 'tart get --help' for more information.

edigaryev
edigaryev previously approved these changes Dec 15, 2022
@fkorotkov
Copy link
Contributor

Could you please rebase after some refactorings in #352?

@marc-48k marc-48k marked this pull request as ready for review December 15, 2022 16:07
@marc-48k marc-48k requested a review from fkorotkov as a code owner December 15, 2022 16:07
@edigaryev edigaryev merged commit fdeaf97 into cirruslabs:main Dec 15, 2022
@edigaryev edigaryev mentioned this pull request Dec 15, 2022
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.

3 participants