Compare commits

..
Author SHA1 Message Date
Ian ad26ebc93b logo 2026-10-13 00:14:04 -04:00
Ian 4d29b065b4 Show the cmd doskey alias beside the PowerShell one 2026-10-12 17:54:46 -04:00
Ian Graham MartinezandClaude Opus 5.5 d679fa0fed Show Windows users PowerShell syntax and the name they type
On Windows the help said `firewall.exe`, suggested a bash alias, and
`serve` printed bash-style variable assignments. Drop the extension,
suggest a PowerShell function (Set-Alias cannot carry arguments), and
print `$env:` assignments. Other platforms are unchanged.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-10-12 17:51:34 -04:00
3 changed files with 8 additions and 13 deletions

No files matched your search

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.3 KiB

-12
View File
@@ -80,18 +80,6 @@ impl FirewallConfig {
pub fn local_url(&self, path: &str) -> String {
crate::local_url(self.port, path)
}
/// Without building a `Firewall`, which needs a runtime.
pub fn hosts(&self) -> Vec<&'static str> {
let mut hosts: Vec<&'static str> = Vec::new();
for registry in &self.registries {
let host = registry.host();
if !hosts.contains(&host) {
hosts.push(host);
}
}
hosts
}
}
pub fn path() -> Option<PathBuf> {
+8 -1
View File
@@ -40,7 +40,14 @@ impl Firewall {
}
pub fn hosts(&self) -> Vec<&'static str> {
self.config.hosts()
let mut hosts: Vec<&'static str> = Vec::new();
for registry in &self.config.registries {
let host = registry.host();
if !hosts.contains(&host) {
hosts.push(host);
}
}
hosts
}
pub fn is_index_url(&self, url: &str) -> bool {