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 Config command #16

Open
jcanizalez opened this issue Aug 4, 2021 · 0 comments
Open

Add Config command #16

jcanizalez opened this issue Aug 4, 2021 · 0 comments
Assignees
Labels
enhancement New feature or request
Milestone

Comments

@jcanizalez
Copy link
Member

Include a new command azb config to allow manage global flags:

Now in order to work different commands in the same org you need to add the org-id parameter, example

azb module list --organization-id bbed1e3f-622b-4700-8255-8cb4832ad2fe
azb module create --organization-id bbed1e3f-622b-4700-8255-8cb4832ad2fe -n myModule -d "module description" -p azurerm -s https://github.com/AzBuilder/terraform-sample-repository.git 
azb module list --organization-id bbed1e3f-622b-4700-8255-8cb4832ad2fe
azb module create --organization-id bbed1e3f-622b-4700-8255-8cb4832ad2fe -n module2 -d "module description 2" -p azurerm -s https://github.com/AzBuilder/terraform-test-repository.git 
azb module list --organization-id bbed1e3f-622b-4700-8255-8cb4832ad2fe
azb workspace create --organization-id bbed1e3f-622b-4700-8255-8cb4832ad2fe -n myWorkspace -s https://github.com/AzBuilder/terraform-sample-repository.git -b master -t 0.15.0
azb workspace list --organization-id bbed1e3f-622b-4700-8255-8cb4832ad2fe

And using config command For example

azb config set organization-id bbed1e3f-622b-4700-8255-8cb4832ad2fe
azb module list 
azb module create  -n myModule -d "module description" -p azurerm -s https://github.com/AzBuilder/terraform-sample-repository.git 
azb module list 
azb module create  -n module2 -d "module description 2" -p azurerm -s https://github.com/AzBuilder/terraform-test-repository.git 
azb module list 
azb workspace create -n myWorkspace -s https://github.com/AzBuilder/terraform-sample-repository.git -b master -t 0.15.0
azb workspace list 

@jcanizalez jcanizalez added this to the 0.2.0 milestone Aug 4, 2021
@jcanizalez jcanizalez self-assigned this Aug 4, 2021
@jcanizalez jcanizalez added the enhancement New feature or request label Aug 4, 2021
@jcanizalez jcanizalez modified the milestones: 0.2.0, 0.3.0 Aug 27, 2021
@jcanizalez jcanizalez modified the milestones: 0.3.0, 0.4.0 Oct 6, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant