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

"okteto status" command #713

Merged
merged 3 commits into from
Feb 27, 2020
Merged

"okteto status" command #713

merged 3 commits into from
Feb 27, 2020

Conversation

pchico83
Copy link
Contributor

Fixes #657

In order to access syncthing from a different command than okteto up, I need to store the syncthing object to deserialize it in the okteto status command.

The --info flag show access urls and credentials for the syncthing UI.

@codecov
Copy link

codecov bot commented Feb 26, 2020

Codecov Report

Merging #713 into master will decrease coverage by 0.84%.
The diff coverage is 0%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #713      +/-   ##
==========================================
- Coverage   33.36%   32.51%   -0.85%     
==========================================
  Files          57       58       +1     
  Lines        4361     4475     +114     
==========================================
  Hits         1455     1455              
- Misses       2811     2925     +114     
  Partials       95       95
Impacted Files Coverage Δ
cmd/up.go 6.2% <0%> (ø) ⬆️
pkg/config/config.go 12.5% <0%> (-0.66%) ⬇️
cmd/push.go 0% <0%> (ø) ⬆️
pkg/syncthing/syncthing.go 0.62% <0%> (-0.09%) ⬇️
pkg/analytics/analytics.go 16.78% <0%> (-0.49%) ⬇️
cmd/status.go 0% <0%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 5816cf1...314a9ad. Read the comment docs.

configFile = "config.xml"
logFile = "syncthing.log"
syncthingPidFile = "syncthing.pid"
syncthingInfoFile = "syncthing.info"

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

syncthingInfoFile is unused (from deadcode)

log.Information("Syncthing password: %s", sy.GUIPassword)
}
ctx := context.Background()
status, err := sy.GetCompletion(ctx, dev)

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ineffectual assignment to status (from ineffassign)

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.

Support for "okteto status"
2 participants