summaryrefslogtreecommitdiff
path: root/src/main.rs
diff options
context:
space:
mode:
authorNaz <ndpm13@ch-naseem.com>2025-08-07 13:48:53 +0100
committerNaz <ndpm13@ch-naseem.com>2025-08-07 13:48:53 +0100
commitc5157ee81b64f20c12ac11b7eb79e07bd3af1469 (patch)
treece7e99354c2b3a33914f1ebe9da9bb77b8908888 /src/main.rs
parentbf42f2e19d8bf710d149c6c6f7301fae2310ba41 (diff)
✨feat: add scaffolding for the github functionality
Diffstat (limited to 'src/main.rs')
-rw-r--r--src/main.rs6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/main.rs b/src/main.rs
index 3eb7e95..e4bc296 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -14,7 +14,11 @@ async fn run() -> Result<()> {
file_path: PathBuf::new(),
executable: args.executable.unwrap_or(args.appname.clone()),
source: Source {
- identifier: "raw_url".to_string(),
+ identifier: if args.github {
+ "git.github".to_string()
+ } else {
+ "raw_url".to_string()
+ },
meta: SourceMetadata { url: args.from },
},
};