Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,24 @@ Build desktop bundles:
npm run tauri build
```

## Command line launcher

Gitmun can be launched from a terminal or shell integration:

```bash
gitmun
gitmun .
gitmun open /path/to/repo
gitmun clone git@github.com:owner/repo.git /path/to/destination
gitmun clone --to /path/to/destination
gitmun clone https://github.com/owner/repo.git --start
gitmun init /path/to/folder
gitmun --reuse-window open .
gitmun completions bash
```

`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.

Linux-only helper setup (if needed):

```bash
Expand Down
131 changes: 131 additions & 0 deletions src-tauri/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions src-tauri/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ reqwest = { version = "0.13", features = ["blocking", "rustls"], default-feature
url = "2"
md5 = "0.8"
base64 = "0.22"
clap = { version = "4.5", features = ["derive"] }
clap_complete = "4.5"
notify = "8"
mime_guess = "2.0"
infer = "0.19"
Expand All @@ -39,6 +41,7 @@ tempfile = "3"

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

Expand Down
Loading
Loading