useanyhow::Result;usegit_meta_lib::Session;/// CLI command context: a gmeta [`Session`] with optional timestamp override.
////// Access session methods directly via `ctx.session`.
pubstructCommandContext{/// The gmeta session (repo + store + config + timestamp).
pubsession: Session,
}implCommandContext{/// Discover the repository and build the command context.
////// # Parameters
/// - `timestamp_override`: If `Some`, pins the session to a fixed
/// timestamp (milliseconds since Unix epoch) instead of the wall clock.
pubfnopen(timestamp_override:Option<i64>)->Result<Self>{letmut session =Session::discover()?;ifletSome(ts)= timestamp_override {
session = session.with_timestamp(ts);}Ok(Self{ session })}}