Skip to main content

entrenar/config/cli/research/
preregister.rs

1//! Pre-registration command arguments
2
3use clap::Parser;
4use std::path::PathBuf;
5
6/// Arguments for preregister command
7#[derive(Parser, Debug, Clone, PartialEq)]
8pub struct PreregisterArgs {
9    /// Research question or title
10    #[arg(long)]
11    pub title: String,
12
13    /// Hypothesis being tested
14    #[arg(long)]
15    pub hypothesis: String,
16
17    /// Methodology description
18    #[arg(long)]
19    pub methodology: String,
20
21    /// Statistical analysis plan
22    #[arg(long)]
23    pub analysis_plan: String,
24
25    /// Additional notes
26    #[arg(long)]
27    pub notes: Option<String>,
28
29    /// Output path for pre-registration
30    #[arg(short, long, default_value = "preregistration.yaml")]
31    pub output: PathBuf,
32
33    /// Path to Ed25519 private key for signing
34    #[arg(long)]
35    pub sign_key: Option<PathBuf>,
36
37    /// Add git commit hash as timestamp proof
38    #[arg(long)]
39    pub git_timestamp: bool,
40}