Skip to content

CLI: Show candidate devices#658

Merged
joseivanlopez merged 5 commits intoagama-project:masterfrom
joseivanlopez:cli-storage-boot-device
Jul 13, 2023
Merged

CLI: Show candidate devices#658
joseivanlopez merged 5 commits intoagama-project:masterfrom
joseivanlopez:cli-storage-boot-device

Conversation

@joseivanlopez
Copy link
Copy Markdown
Contributor

@joseivanlopez joseivanlopez commented Jul 11, 2023

Problem

The information about the selected storage candidate devices is not shown by agama config show command.

Note: this is a Rust introductory card. The goal is to get familiar with the code and start writing some bits. The format of the storage settings (including the candidate devices) is going to be changed soon, see #656.

Solution

Loads the information about the candidate devices.

Bonus: print a new line for text and json formats.

$ agama -f json config show 
{"user":{"fullName":"","userName":"","password":"","autologin":false},"root":{"sshPublicKey":null},
"software":{"product":"Tumbleweed"},"storage":{"lvm":null,"encryptionPassword":null,
"devices":[{"name":"/dev/vdb"}]},"network":{"connections":[{"id":"enp1s0","method":"auto"},
{"id":"lo","method":"manual","addresses":["127.0.0.1/8"]}]}}
$

Testing

  • Tested manually

@joseivanlopez joseivanlopez force-pushed the cli-storage-boot-device branch from 4dd7702 to 6f33a43 Compare July 12, 2023 11:04
@joseivanlopez joseivanlopez changed the title CLI show boot device CLI show candidate devices Jul 12, 2023
@joseivanlopez joseivanlopez force-pushed the cli-storage-boot-device branch from 9a86952 to 9102802 Compare July 12, 2023 12:10
@joseivanlopez joseivanlopez marked this pull request as ready for review July 12, 2023 12:18
@joseivanlopez joseivanlopez changed the title CLI show candidate devices [cli] Show candidate devices Jul 12, 2023
@coveralls
Copy link
Copy Markdown

coveralls commented Jul 12, 2023

Coverage Status

coverage: 72.339% (-0.06%) from 72.398% when pulling d35c294 on joseivanlopez:cli-storage-boot-device into f33d147 on openSUSE:master.

@joseivanlopez joseivanlopez changed the title [cli] Show candidate devices CLI: Show candidate devices Jul 12, 2023
joseivanlopez and others added 3 commits July 13, 2023 09:40
Co-authored-by: Imobach González Sosa <igonzalezsosa@suse.com>
@joseivanlopez joseivanlopez force-pushed the cli-storage-boot-device branch from 9102802 to 3c842b0 Compare July 13, 2023 08:46
Copy link
Copy Markdown
Contributor

@imobachgs imobachgs left a comment

Choose a reason for hiding this comment

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

LGTM but, please, add the entry to the changes file.

@joseivanlopez joseivanlopez force-pushed the cli-storage-boot-device branch from 3c842b0 to 4e726cc Compare July 13, 2023 08:56
@joseivanlopez joseivanlopez merged commit 9243267 into agama-project:master Jul 13, 2023
@imobachgs imobachgs mentioned this pull request Aug 2, 2023
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