Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

feat: add --env flag for "coder ssh"#12991

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
mafredri merged 1 commit intocoder:mainfromaaronlehmann:ssh-setenv
Apr 22, 2024

Conversation

aaronlehmann
Copy link
Contributor

This allows environment variables to be set on the SSH session.

Example:

coder ssh myworkspace --env VAR1=val1,VAR2=val2

@cdr-botcdr-botbot added the communityPull Requests and issues created by the community. labelApr 17, 2024
@aaronlehmannaaronlehmann changed the titlefeat: Add --env flag for "coder ssh"feat: add --env flag for "coder ssh"Apr 17, 2024
Copy link
Member

@kylecarbskylecarbs left a comment

Choose a reason for hiding this comment

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

Will let@mafredri review, but seems reasonable to me!

@aaronlehmannaaronlehmannforce-pushed thessh-setenv branch 2 times, most recently from064956f toe99d184CompareApril 18, 2024 15:57
This allows environment variables to be set on the SSH session.Example:   coder ssh myworkspace --env VAR1=val1,VAR2=val2
Copy link
Member

@mafredrimafredri left a comment

Choose a reason for hiding this comment

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

Looks great, thanks for adding this functionality!

@mafredrimafredri merged commit8a12162 intocoder:mainApr 22, 2024
@github-actionsgithub-actionsbot locked and limited conversation to collaboratorsApr 22, 2024
@matifali
Copy link
Member

Can this be done using API, too?

@kylecarbs
Copy link
Member

@matifali realistically, it already is.

This just uses the SSH protocol to set env vars.

@matifali
Copy link
Member

I was looking into a use case where someone is developing a custom skin over Coder API and would like to set env variables at workspace start.
It can be done already on a template level usingcoder_env and could be scripted to customize for each of the workspaces.

Sign up for freeto subscribe to this conversation on GitHub. Already have an account?Sign in.
Reviewers

@kylecarbskylecarbskylecarbs left review comments

@mafredrimafredrimafredri approved these changes

Assignees

@aaronlehmannaaronlehmann

Labels
communityPull Requests and issues created by the community.
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

4 participants
@aaronlehmann@matifali@kylecarbs@mafredri

[8]ページ先頭

©2009-2025 Movatter.jp