summaryrefslogtreecommitdiffstats
path: root/fatcat-cli/src/api.rs
diff options
context:
space:
mode:
Diffstat (limited to 'fatcat-cli/src/api.rs')
-rw-r--r--fatcat-cli/src/api.rs5
1 files changed, 4 insertions, 1 deletions
diff --git a/fatcat-cli/src/api.rs b/fatcat-cli/src/api.rs
index 2463aab..37e8a51 100644
--- a/fatcat-cli/src/api.rs
+++ b/fatcat-cli/src/api.rs
@@ -412,7 +412,10 @@ impl FatcatApiClient {
extra.insert(
"agent".to_string(),
serde_json::Value::String("fatcat-cli".to_string()),
- // TODO: version?
+ );
+ extra.insert(
+ "agent_version".to_string(),
+ serde_json::Value::String(env!("CARGO_PKG_VERSION").to_string()),
);
extra
});