Skip to content

Commit 08dd060

Browse files
authored
v0.7.0 target changes (#33)
See #33
1 parent 5163d79 commit 08dd060

29 files changed

Lines changed: 2013 additions & 365 deletions

‎README.md‎

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,24 @@ Build desktop bundles:
5050
npm run tauri build
5151
```
5252

53+
## Command line launcher
54+
55+
Gitmun can be launched from a terminal or shell integration:
56+
57+
```bash
58+
gitmun
59+
gitmun .
60+
gitmun open /path/to/repo
61+
gitmun clone git@github.com:owner/repo.git /path/to/destination
62+
gitmun clone --to /path/to/destination
63+
gitmun clone https://github.com/owner/repo.git --start
64+
gitmun init /path/to/folder
65+
gitmun --reuse-window open .
66+
gitmun completions bash
67+
```
68+
69+
`gitmun <path>` is the shorthand for opening a repository. `clone` accepts an optional repository URL or SSH path, an optional destination, and `--start` to begin cloning after the window opens. Use `--to` to set only the destination. `init` defaults to the current directory when no path is supplied. Use `--help` for the full command reference.
70+
5371
Linux-only helper setup (if needed):
5472

5573
```bash

‎src-tauri/Cargo.lock‎

Lines changed: 131 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎src-tauri/Cargo.toml‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@ reqwest = { version = "0.13", features = ["blocking", "rustls"], default-feature
2727
url = "2"
2828
md5 = "0.8"
2929
base64 = "0.22"
30+
clap = { version = "4.5", features = ["derive"] }
31+
clap_complete = "4.5"
3032
notify = "8"
3133
mime_guess = "2.0"
3234
infer = "0.19"
@@ -39,6 +41,7 @@ tempfile = "3"
3941

4042
[target.'cfg(target_os = "linux")'.dependencies]
4143
gtk = { version = "0.18", features = ["v3_24"] }
44+
linux-terminal-launch = { git = "https://github.com/cst8t/linux-terminal-launch" }
4245
pci-info = { version = "0.3.4", default-features = false }
4346
webkit2gtk = "2.0.2"
4447

0 commit comments

Comments
 (0)