• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

iggy-rs / iggy / 13223836977

09 Feb 2025 08:17AM UTC coverage: 75.092% (-0.03%) from 75.117%
13223836977

push

github

web-flow
Add `--fresh` flag to remove system path before starting (#1499)

This commit introduces a new `--fresh` flag to the server's command-line
arguments. When this flag is set, the server will remove the system path
(local_data by default) before starting, effectively clearing all saved
data. This is useful for starting with a clean state.

3 of 14 new or added lines in 2 files covered. (21.43%)

1 existing line in 1 file now uncovered.

24983 of 33270 relevant lines covered (75.09%)

9861.77 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

33.33
/server/src/args.rs
1
use clap::Parser;
2

3
#[derive(Parser, Debug)]
4
#[command(author, version, about, long_about = None)]
5
pub struct Args {
6
    #[arg(short, long, default_value = "file")]
7
    pub config_provider: String,
×
8

9
    #[arg(
10
        long,
11
        default_value_t = false,
131✔
12
        help = "Remove system path (local_data by default) before starting. THIS WILL REMOVE ALL SAVED DATA!"
13
    )]
NEW
14
    pub fresh: bool,
×
15
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc