Skip to content

Commit 0a56d0e

Browse files
sync from internal repository
1 parent 8bdbac9 commit 0a56d0e

File tree

17 files changed

+1945
-106
lines changed

17 files changed

+1945
-106
lines changed

AGENTS.md

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
# dkdc-links
2+
3+
Bookmarks in your terminal.
4+
5+
## Commands
6+
7+
```bash
8+
bin/build # Build all (Rust + Python)
9+
bin/build-rs # Build Rust crate
10+
bin/build-py # Build Python bindings (maturin develop)
11+
bin/check # Run all checks (format, lint, test)
12+
bin/check-rs # Rust checks (fmt, clippy, test)
13+
bin/check-py # Python checks (ruff)
14+
bin/test # Run all tests
15+
bin/test-rs # Rust tests
16+
bin/format # Format all code
17+
bin/install # Install CLI (Rust + Python)
18+
```
19+
20+
## Architecture
21+
22+
```
23+
dkdc-links/ # Core Rust crate (standalone, not in monorepo workspace)
24+
src/lib.rs # Library root
25+
src/main.rs # Binary entry point
26+
src/cli.rs # CLI (clap), optional `gui` subcommand
27+
src/config.rs # Config loading/saving (~/.config/dkdc/links/config.toml)
28+
src/open.rs # Link resolution (alias → link → URI)
29+
src/gui.rs # iced GUI (behind `gui` feature flag)
30+
dkdc-links-py/ # PyO3 bindings (cdylib)
31+
src/dkdc_links/ # Python wrapper
32+
```
33+
34+
Config structure: aliases map to links, links map to URIs, groups expand to multiple aliases/links.

CLAUDE.md

Lines changed: 0 additions & 34 deletions
This file was deleted.

CLAUDE.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
AGENTS.md

README.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Bookmarks CLI
1+
# Bookmarks
22

33
Bookmarks in your terminal.
44

@@ -19,7 +19,7 @@ uv tool install dkdc-links
1919
cargo:
2020

2121
```bash
22-
cargo install dkdc-links
22+
cargo install dkdc-links --features app,webapp
2323
```
2424

2525
You can use `uvx` to run it without installing:
@@ -52,7 +52,8 @@ dkdc-links dev
5252
| Flag | Short | Description |
5353
|------|-------|-------------|
5454
| `--config` | `-c` | Open config file in editor |
55-
| `--gui` | | Open graphical interface (under construction) |
55+
| `--app` | `-a` | Open desktop app (requires `app` feature; under construction) |
56+
| `--webapp` | `-w` | Open the webapp (requires `webapp` feature) |
5657
| `--help` | `-h` | Print help |
5758
| `--version` | `-V` | Print version |
5859

bin/install-rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@ set -euo pipefail
33
cd "$(dirname "${BASH_SOURCE[0]}")/.."
44

55
echo "Installing dkdc-links CLI..."
6-
cargo install --path dkdc-links --force
6+
cargo install --path dkdc-links --features webapp --force
77

88
echo "Rust install complete!"

0 commit comments

Comments
 (0)