add windows alias to readme
This commit is contained in:
parent
4772b02825
commit
2058f91b35
15
README.md
15
README.md
@ -31,3 +31,18 @@ traefik-helper remove [name]
|
||||
```bash
|
||||
traefik-helper list
|
||||
```
|
||||
|
||||
## Windows Alias
|
||||
|
||||
```bash
|
||||
function Traefik-Helper {
|
||||
$argsAsString = $args -join ' '
|
||||
|
||||
$sshCommand = "ssh root@ip -i C:\Users\you\.ssh\your_ssh_key docker run --rm -v /var/run/docker.sock:/var/run/docker.sock -v /home/traefik/data/config.yml:/app/config.yml -e CONTAINER_NAME=traefik fascinated/traefik-helper:latest python src/manage.py $argsAsString"
|
||||
|
||||
Invoke-Expression $sshCommand
|
||||
}
|
||||
|
||||
# Set the alias
|
||||
Set-Alias -Name "traefik" -Value "Traefik-Helper"
|
||||
```
|
||||
|
Loading…
Reference in New Issue
Block a user