Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

Refresh CLI metadata

Manav Rathi602a693f0384
diff --git a/rust/apps/cli/Cargo.toml b/rust/apps/cli/Cargo.toml
index ab60f93681..3c257432bf 100644
--- a/rust/apps/cli/Cargo.toml
+++ b/rust/apps/cli/Cargo.toml
@@ -2,7 +2,7 @@
name = "ente-rs"
version = "0.0.1"
edition = "2024"
-description = "Rust bindings and CLI for Ente"
+description = "Command-line interface for Ente"
homepage = "https://ente.com"
repository = "https://github.com/ente-io/ente"
license = "AGPL-3.0-only"
diff --git a/rust/apps/cli/src/cli/mod.rs b/rust/apps/cli/src/cli/mod.rs
index 7f18f9141d..933dde6702 100644
--- a/rust/apps/cli/src/cli/mod.rs
+++ b/rust/apps/cli/src/cli/mod.rs
@@ -7,7 +7,7 @@ pub mod version;
#[derive(Parser)]
#[command(name = "ente")]
-#[command(about = "CLI tool for exporting your photos from Ente", long_about = None)]
+#[command(about = "Command-line interface for Ente", long_about = None)]
pub struct Cli {
#[command(subcommand)]
pub command: Commands,
diff --git a/rust/apps/cli/src/commands/paste.rs b/rust/apps/cli/src/commands/paste.rs
index 60eaba8cb9..ff26cdf3bb 100644
--- a/rust/apps/cli/src/commands/paste.rs
+++ b/rust/apps/cli/src/commands/paste.rs
@@ -1,4 +1,5 @@
use crate::{
+ api::client::USER_AGENT,
cli::paste::{PasteCommand, PasteSubcommands},
models::error::{Error, Result},
};
@@ -16,7 +17,6 @@ const FRAGMENT_SECRET_LENGTH: usize = 12;
const FRAGMENT_SECRET_ALPHABET: &[u8] =
b"0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz";
const PASTE_GUARD_COOKIE: &str = "paste_guard";
-const USER_AGENT: &str = concat!("ente-cli-rust/", env!("CARGO_PKG_VERSION"));
pub async fn handle_paste_command(cmd: PasteCommand) -> Result<()> {
match cmd.command {