cobbler / cli

Independent CLI written in Go for the Cobbler server.
GNU General Public License v2.0
1 stars 3 forks source link

Move client generation to CLI methods #49

Closed SchoolGuy closed 3 months ago

SchoolGuy commented 3 months ago

This is needed so when executing --help or generating the shell completion no login is attempted to be performed.

Fixes #42

Building the project can be now done without the exit status 1:

enno@dell-laptop ~/S/G/cobbler-cli (main)> make build
building package
go build -o cobbler main.go
creating shell completions
make shell_completions
make[1]: Verzeichnis „/home/enno/Sources/GolandProjects/cobbler-cli“ wird betreten
./cobbler completion bash > config/completions/bash/cobbler
./cobbler completion fish > config/completions/fish/cobbler
./cobbler completion powershell > config/completions/powershell/cobbler
./cobbler completion zsh > config/completions/zsh/cobbler
make[1]: Verzeichnis „/home/enno/Sources/GolandProjects/cobbler-cli“ wird verlassen