summaryrefslogtreecommitdiff
path: root/src/main.rs
diff options
context:
space:
mode:
authorNaz <ndpm13@ch-naseem.com>2025-08-07 17:01:44 +0100
committerNaz <ndpm13@ch-naseem.com>2025-08-07 17:01:44 +0100
commit75e49e6571cf991f36d3b0cab481f984afa51c44 (patch)
treeeb9718bc978f16faf53796d64bc7a93d9f551fa4 /src/main.rs
parentbf42f2e19d8bf710d149c6c6f7301fae2310ba41 (diff)
parentb47a4357c43b37fdd0c9cb4489acba8943022a27 (diff)
Merge pull request 'feat/issue-15' (#16) from feat/issue-15 into main
Reviewed-on: https://git.ch-naseem.com/ndpm13/zap-rs/pulls/16
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 },
},
};