edf-hpc / clara

Cluster Administration tools
Other
18 stars 12 forks source link

Make dist parameter mandatory for the repo plugin #44

Closed mehdid closed 9 years ago

mehdid commented 9 years ago

For now, the interface is like: clara repo key clara repo init [--dist=] clara repo sync (all|...|--dist=) clara repo add ... [--dist=] [--reprepro-flags="list of flags"...] clara repo del ...[--dist=] clara repo list [--dist=]

It turns out that it is very error-prone and one can easily forget the --dist parameter :) Ideally, the interface should be: clara repo init [dist] clara repo sync (all|/...|) clara repo add ... [--reprepro-flags="list of flags"...] clara repo del ... clara repo list

clara could then make the parameter optional if config.ini:distributions contains only one distribution. Dunno if the latter is easy to implement though.