5
0
mirror of https://github.com/cwinfo/yggdrasil-go.git synced 2024-11-24 13:41:36 +00:00
yggdrasil-go/cmd/yggdrasilctl
Alex Kotov cbb6dc1b7d
Split yggdrasilctl code into separate functions (refactoring) (#815)
* Move yggdrasilctl responses to separate functions

* Move yggdrasilctl request switch to separate function

* Add empty lines

* Create struct CmdLine for yggdrasilctl

* Move yggdrasilctl command line parsing to separate func

* Turn struct CmdLine into CmdLineEnv

* Rename func parseCmdLine to parseFlagsAndArgs

* Move yggdrasilctl endpoint setting logic into separate func

* Function to create yggdrasilctl CmdLineEnv

* Reorder code

* Move struct fields into lines

* Turn yggdrasilctl CmdLineEnv funcs to methods

* Move yggdrasilctl connection code to separate func

* Rename functions

* Move yggdrasilctl command line env to separate mod

* Move yggdrasilctl command line env to main mod

* Run goimports

Co-authored-by: Neil Alexander <neilalexander@users.noreply.github.com>
2021-08-02 22:47:38 +01:00
..
cmd_line_env.go Split yggdrasilctl code into separate functions (refactoring) (#815) 2021-08-02 22:47:38 +01:00
main.go Split yggdrasilctl code into separate functions (refactoring) (#815) 2021-08-02 22:47:38 +01:00