-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Julian Labatut <[email protected]>
- Loading branch information
Showing
3 changed files
with
56 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,23 @@ | ||
# Lumper | ||
# Quark | ||
|
||
<img src="https://img.shields.io/github/workflow/status/virt-do/quark/quark%20build%20and%20unit%20tests?style=for-the-badge" /> | ||
|
||
## Build a quardle | ||
|
||
Building a `quardle` with the container image bundled into the initramfs image : | ||
|
||
```bash | ||
quark build --image <container_image_url> --offline --quardle <quardle_name> | ||
``` | ||
|
||
Building a `quardle` with the container image to be pulled from within the guest: | ||
|
||
```bash | ||
quark build --image <container_image_url> --quardle <quardle_name> | ||
``` | ||
|
||
## Run a quardle | ||
|
||
```bash | ||
quark run --quardle <quardle> --output <output_file> | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
use clap::Args; | ||
|
||
use super::{Handler, Result}; | ||
|
||
/// Arguments for `BuildCommand` | ||
/// | ||
/// Usage : | ||
/// `quark build --image <container_image_url> [--offline] --quardle <quardle_name>` | ||
#[derive(Debug, Args)] | ||
pub struct BuildCommand { | ||
/// The name of the generated quardle, with the suffix `.qrk` | ||
#[clap(short, long)] | ||
quardle: String, | ||
|
||
/// The container image url to use | ||
#[clap(short, long)] | ||
image: String, | ||
|
||
/// Indicates wether or not the container image is bundled into the initramfs image | ||
#[clap(short, long)] | ||
offline: bool | ||
} | ||
|
||
/// Method that will be called when the command is executed. | ||
impl Handler for BuildCommand { | ||
fn handler(&self) -> Result<()> { | ||
// TODO | ||
Ok(()) | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters