Skip to content

Commit

Permalink
Add snapshot command (#1320)
Browse files Browse the repository at this point in the history
* Add a method for obtaining a system snapshot on the server. 
* Add integration of the snapshot method into handlers for binary and HTTP requests.
* Add a CLI command for retrieving the snapshot, simplifying access to this functionality.

Closes #140
  • Loading branch information
haze518 authored Nov 3, 2024
1 parent 5fb550d commit 3c5f19a
Show file tree
Hide file tree
Showing 35 changed files with 1,121 additions and 10 deletions.
200 changes: 195 additions & 5 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion cli/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "iggy-cli"
version = "0.8.1"
version = "0.8.2"
edition = "2021"
authors = ["[email protected]"]
repository = "https://github.com/iggy-rs/iggy"
Expand Down
4 changes: 4 additions & 0 deletions cli/src/args/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ use figlet_rs::FIGfont;

use iggy::args::{Args as IggyArgs, ArgsOptional as IggyArgsOptional};
use iggy::cli::context::common::ContextConfig;
use system::SnapshotArgs;

use crate::args::{
client::ClientAction,
Expand Down Expand Up @@ -137,6 +138,9 @@ pub(crate) enum Command {
/// Server OS name, version, etc. are also collected.
#[clap(verbatim_doc_comment)]
Stats(StatsArgs),
/// collect iggy server troubleshooting data
#[clap(verbatim_doc_comment)]
Snapshot(SnapshotArgs),
/// personal access token operations
#[command(subcommand)]
Pat(PersonalAccessTokenAction),
Expand Down
Loading

0 comments on commit 3c5f19a

Please sign in to comment.