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 envs command #2

Merged
merged 1 commit into from
Aug 14, 2024
Merged

Add envs command #2

merged 1 commit into from
Aug 14, 2024

Conversation

hidakatsuya
Copy link
Owner

This PR add a new command envs. This command shows the list of defined environments in .extensions.rb.

plugin :hello_world_plugin, github: { repo: "hello/world_plugin" }

env :stable do
  plugin :hello_world_plugin, github: { repo: "hello/world_plugin" , branch: "stable" }
end

env :staging do
  plugin :hello_world_plugin, github: { repo: "hello/world_plugin" , branch: "staging" }  
end

If there is .extensions.rb with above definition, executing rex envs command will output the following:

$ rex envs
default
stable
staging

@hidakatsuya hidakatsuya merged commit 530dfcb into main Aug 14, 2024
3 checks passed
@hidakatsuya hidakatsuya deleted the add-envs-command branch August 14, 2024 16:12
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.

1 participant