Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

make exported ParseOptions fileds #1146

Merged
merged 5 commits into from
Apr 7, 2022
Merged

make exported ParseOptions fileds #1146

merged 5 commits into from
Apr 7, 2022

Conversation

mrpalide
Copy link
Contributor

@mrpalide mrpalide commented Apr 7, 2022

Did you run make format && make check? Yes

Fixes _

Changes:

  • Deleted Parse_test.go
  • Updated func Parse
  • Seleted funs parseV1, ensureAppDisc and the strut ParseOptions
  • Removed args from params of runApp, runVisor and initConfig
  • Changed regexp.MatchString to strings.Contains

How to test this PR:
_

mrpalide and others added 5 commits April 7, 2022 07:21
This commit fixes the Parse file by removing the funcs parseV1, ensureAppDisc and the strut ParseOptions because they are not used anymore and we do not write the config to file on startup.

Parse_test.go is deleted because it is not needed since we do not write to the config with Parse.

Parse now only reads from the io reader provided to ght the conf in V1 and compares the version of the config to the version of the visor and sends back the result in the new variable compat.
This commit removes the parameter from func runApp, runVisor and initConfig as it is no longer used.
@ersonp ersonp merged commit c50ebe4 into skycoin:develop Apr 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants