Skip to content
This repository was archived by the owner on Aug 30, 2024. It is now read-only.

added devurls capability #10

Merged
merged 1 commit into from
May 12, 2020
Merged

added devurls capability #10

merged 1 commit into from
May 12, 2020

Conversation

anthonyshull
Copy link
Contributor

This is the first step in getting coder-cli into environments.

Copy link
Member

@ammario ammario left a comment

Choose a reason for hiding this comment

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

Overall: clean!

Comment on lines +41 to +42
reqString := "%s/api/environments/%s/devurl?port=%s&session_token=%s"
reqUrl := fmt.Sprintf(reqString, entClient.BaseURL, env.ID, port, entClient.Token)
Copy link
Contributor

Choose a reason for hiding this comment

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

For re-usability I think it would make sense to have route constructors in their own function.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I thought about that, but it's basically just Sprintf.

@codeclimate
Copy link

codeclimate bot commented May 12, 2020

Code Climate has analyzed commit b695c20 and detected 0 issues on this pull request.

View more on Code Climate.

@anthonyshull anthonyshull merged commit a1fb1d3 into master May 12, 2020
@anthonyshull anthonyshull deleted the devurls branch May 13, 2020 22:43
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants