IEEE-VIT / termiboard

A smart CLI Dashboard to fetch cpu, memory and network stats!
MIT License
35 stars 16 forks source link

[Feature] Moving all Flag Options to it's own new file #32

Closed sjchoure closed 4 years ago

sjchoure commented 4 years ago

Please describe the feature you want this project to offer All the flag options and variables are in main.go among other functions. Thus reducing the readability of the code inside the main.go.

In the light of separating the specification and implementation, we would like to create a new separate file for all the flag options and it's variable, making the main function more readable.

Describe the solution you'd like

  1. vim/nano flag.go
  2. Move all flag helper variables and functions to this new file
  3. :wq / (^x and then y)
  4. Call the new initflag function inside main.go

Additional context Readability and Maintainability of code increases

DarthBenro008 commented 4 years ago

This is would be automatically handled as there will be a refactor of termiboard where we will shift to organisation of mods instead of decoupled files! Thank you for raising this issue :)