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

Add initial TFC Config Set Command #4

Closed
wants to merge 57 commits into from
Closed

Conversation

teresamychu
Copy link
Contributor

Add Initial TFC Config Set Command for Waypoint.

Will probably have to do some conflict resolving once Evan merges his PR.

@teresamychu teresamychu requested a review from dadgar February 7, 2024 22:37
internal/commands/hcp/hcp.go Outdated Show resolved Hide resolved
internal/commands/waypoint/base.go Outdated Show resolved Hide resolved
internal/commands/waypoint/base.go Outdated Show resolved Hide resolved
internal/commands/waypoint/base.go Outdated Show resolved Hide resolved
internal/commands/waypoint/base.go Outdated Show resolved Hide resolved
internal/commands/waypoint/waypoint.go Outdated Show resolved Hide resolved
internal/commands/waypoint/waypoint.go Outdated Show resolved Hide resolved
This repo will probably want to be outfitted with hcp-checks, which
includes a linter.
Copy link
Contributor

@evanphx evanphx left a comment

Choose a reason for hiding this comment

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

I believe the base.go got included by mistake

internal/commands/waypoint/base.go Outdated Show resolved Hide resolved
internal/commands/waypoint/tfcconfig/tfc_config_set.go Outdated Show resolved Hide resolved
internal/commands/waypoint/tfcconfig/tfc_config_set.go Outdated Show resolved Hide resolved
internal/commands/waypoint/tfcconfig/tfc_config_set.go Outdated Show resolved Hide resolved
internal/commands/waypoint/tfcconfig/tfc_config_set.go Outdated Show resolved Hide resolved
internal/commands/waypoint/tfcconfig/tfc_config_set.go Outdated Show resolved Hide resolved
internal/commands/waypoint/tfcconfig/tfc_config_set.go Outdated Show resolved Hide resolved
internal/commands/waypoint/waypoint.go Outdated Show resolved Hide resolved
Copy link
Contributor

@catsby catsby left a comment

Choose a reason for hiding this comment

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

Should we also add a command to read the current TFC Config? If nothing else report back the name of the TFC Organization that's in use.

internal/commands/waypoint/tfcconfig/tfc_config.go Outdated Show resolved Hide resolved
@teresamychu teresamychu force-pushed the add_tfc_config_set_cmd branch 3 times, most recently from fa6e984 to c3cb38e Compare February 12, 2024 18:42
Copy link
Member

@briancain briancain left a comment

Choose a reason for hiding this comment

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

Looking pretty good, I feel like this is pretty much good to go now minus a few fixups!

internal/commands/waypoint/tfcconfig/tfc_config_set.go Outdated Show resolved Hide resolved
internal/commands/waypoint/tfcconfig/tfc_config_set.go Outdated Show resolved Hide resolved
internal/commands/waypoint/tfcconfig/tfc_config_set.go Outdated Show resolved Hide resolved
internal/commands/waypoint/tfcconfig/tfc_config.go Outdated Show resolved Hide resolved
internal/commands/waypoint/tfcconfig/tfc_config_set.go Outdated Show resolved Hide resolved
internal/commands/waypoint/tfcconfig/tfc_config_set.go Outdated Show resolved Hide resolved
internal/commands/waypoint/tfcconfig/tfc_config_set.go Outdated Show resolved Hide resolved
internal/commands/waypoint/tfcconfig/tfc_config_set.go Outdated Show resolved Hide resolved
teresamychu and others added 22 commits February 21, 2024 16:11
@teresamychu
Copy link
Contributor Author

Rebase is being weird. Fixing it now.

@teresamychu teresamychu force-pushed the add_tfc_config_set_cmd branch from 7662a06 to 1b9cf6d Compare February 21, 2024 21:16
Copy link
Collaborator

Choose a reason for hiding this comment

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

You accidentally added the binary

Copy link
Collaborator

Choose a reason for hiding this comment

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

Can you please rewrite the git history to not include this.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

WHOOPS. WILL FIX. Thanks!

@@ -0,0 +1,122 @@
package tfcconfig
Copy link
Collaborator

Choose a reason for hiding this comment

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

Please consider adding unit tests

Copy link
Collaborator

@dadgar dadgar left a comment

Choose a reason for hiding this comment

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

Approved pending the deletion of the hcp binary from the history.

@teresamychu teresamychu force-pushed the add_tfc_config_set_cmd branch from 45a8e00 to 423ce2a Compare February 22, 2024 18:34
@dadgar dadgar deleted the add_tfc_config_set_cmd branch March 8, 2024 01:44
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.

5 participants