knqyf263 / pet

Simple command-line snippet manager
MIT License
4.54k stars 230 forks source link

Named params #155

Closed seivan closed 3 years ago

seivan commented 3 years ago

I was wondering if it's feasible to add named params, so they can be reused. An example is

docker run --rm -p 5432:5432 -v ~/Projects/DockerVolumes/postgresql/<param=12.4>/data:/var/lib/postgresql/data -e POSTGRES_PASSWORD=password postgres:<param=12.4>"

This would ask for the param twice, when it should be the same.

seivan commented 3 years ago

Doh, noticed that they are indeed named! Sorry to bother.