You could maybe try automatically picking up which scheduler is on the system before asking which one (i.e., to sort of set a default).
So for example, just before this question is asked:
[?] Select the job scheduler that your HPC system uses (Specify local to run jobs on login node): slurm
local
aws batch
azure batch
bridge
flux
lsf
moab
nqsii
oar
pbs
pbspro
sge
> slurm
you could run a range of commands e.g. sinfo for slurm, qsub for SGE etc to see if they give a exit code of 0, and if they do then offer that to the user as the default.
You could maybe try automatically picking up which scheduler is on the system before asking which one (i.e., to sort of set a default).
So for example, just before this question is asked:
you could run a range of commands e.g.
sinfo
for slurm,qsub
for SGE etc to see if they give a exit code of 0, and if they do then offer that to the user as the default.