Skip to content

Commit 33bd0c7

Browse files
authored
Merge pull request #1 from rhslack/feat-add-verify-connection-and-short
feat: Add Azure VPN import and improve connection handling
2 parents cec2a68 + 87d149c commit 33bd0c7

File tree

7 files changed

+635
-186
lines changed

7 files changed

+635
-186
lines changed

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "remipn"
3-
version = "0.1.0"
3+
version = "0.2.0"
44
edition = "2024"
55

66
[dependencies]

README.md

Lines changed: 21 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,11 @@
1010
- ⌨️ **CLI Support**: Quick commands to connect, disconnect, and check VPN status.
1111
- 🔄 **Smart Connection Management**: Automatically handles switching between different VPNs, ensuring only one is active at a time.
1212
-**Real-time Feedback**: Connection status monitoring with an automatic retry mechanism and polling.
13-
- 📁 **Profile Import**: Supports importing profiles from XML files (including support for Azure VPN Client on macOS).
13+
- 📁 **Profile Import**: Supports importing profiles from XML files, including automatic detection of Azure VPN Client profiles on macOS.
14+
- 🚀 **Auto-Import**: Automatic scanning of default and system directories (`~/.config/remipn/imports/` and Azure VPN paths).
1415
- 🔍 **Search and Filters**: Quickly find your profiles by name, category, or alias.
1516
- 📂 **Cross-Platform**: Support for Windows (`rasdial`), Linux (`nmcli`), and macOS (`scutil`).
17+
- ⌨️ **CLI Shorthands**: Quick command aliases (c, d, s, l) for power users.
1618

1719
## Installation
1820

@@ -43,34 +45,45 @@ remipn
4345
- `e`: Edit the selected profile
4446
- `a`: Quick alias edit for the selected profile
4547
- `x`: Delete the selected profile
46-
- `i`: Import profiles from XML
48+
- `i`: Import profiles from XML via file browser
49+
- `I`: Manually trigger auto-import from standard locations (Azure VPN Client, etc.)
4750
- `/`: Search through profiles
4851
- `l`: Show/Hide logs
4952
- `s`: Change sorting
5053
- `q`: Quit
5154

5255
### CLI Interface
5356

54-
You can also use `remipn` directly from the command line:
57+
You can also use `remipn` directly from the command line with handy aliases:
5558

5659
```bash
57-
# List all profiles
60+
# List all profiles (alias: l)
5861
remipn list
62+
remipn l
5963

60-
# Connect to a profile (use name or alias)
64+
# Connect to a profile (alias: c)
6165
remipn connect "ProfileName"
66+
remipn c "alias"
6267

63-
# Disconnect the active VPN
68+
# Disconnect (alias: d)
69+
# Provide a name to disconnect a specific VPN, or no name to disconnect all
6470
remipn disconnect
71+
remipn d "ProfileName"
6572

66-
# Check status
73+
# Check status (alias: s)
6774
remipn status
75+
remipn s
6876
```
6977

7078
## Configuration
7179

7280
Configurations are saved in `~/.config/remipn/config.toml`.
73-
XML files for automatic import at startup can be placed in `~/.config/remipn/imports/`.
81+
82+
**Profile Import Locations:**
83+
- **Default**: `~/.config/remipn/imports/` (searched at startup or via `I`).
84+
- **macOS Azure VPN**: `~/Library/Containers/com.microsoft.AzureVpnMac/Data/Library/Application Support/com.microsoft.AzureVpnMac` (automatically scanned).
85+
86+
Supported formats: `.xml`, `.ovpn`, `.azvpn`.
7487

7588
## License
7689

0 commit comments

Comments
 (0)