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

Allow to pass an index number with `sourced compose set` #199

Closed
se7entyse7en opened this issue Aug 7, 2019 · 1 comment · Fixed by #214

Comments

@se7entyse7en
Copy link
Member

commented Aug 7, 2019

Currently, we need to pass the name of the compose file to set it as active. This may require copy-pasting from the output of sourced compose list.

As an example:

✔  se7entyse7en in ~/Projects/src-d/sourced-ce (master)  $ sourced compose list
https://gist.githubusercontent.com/carlosms/aed2c4b0d59358a563ba4f2f41def6f2/raw/1148b6aff24387dd67d5b0c7b05ba1ea8b78a9e2/docker-compose.yml
* master

In this case I'd need to run:

sourced compose set https://gist.githubusercontent.com/carlosms/aed2c4b0d59358a563ba4f2f41def6f2/raw/1148b6aff24387dd67d5b0c7b05ba1ea8b78a9e2/docker-compose.yml

It would be handy if the output of list is:

✔  se7entyse7en in ~/Projects/src-d/sourced-ce (master)  $ sourced compose list
[1] https://gist.githubusercontent.com/carlosms/aed2c4b0d59358a563ba4f2f41def6f2/raw/1148b6aff24387dd67d5b0c7b05ba1ea8b78a9e2/docker-compose.yml
[2] * master

so that I can then simply run:

sourced compose set 1
@cmbahadir

This comment has been minimized.

Copy link
Contributor

commented Aug 15, 2019

Hi @se7entyse7en is this topic still active? I am able to create a PR for it.

@smacker smacker closed this in #214 Aug 28, 2019

carlosms added a commit to carlosms/sourced-ce that referenced this issue Aug 29, 2019
Add src-d#199 to changelog
Signed-off-by: Carlos Martín <carlos.martin.sanchez@gmail.com>
@carlosms carlosms referenced this issue Aug 29, 2019
1 of 2 tasks complete
carlosms added a commit to carlosms/sourced-ce that referenced this issue Sep 2, 2019
Add src-d#199 to changelog
Signed-off-by: Carlos Martín <carlos.martin.sanchez@gmail.com>
carlosms added a commit that referenced this issue Sep 2, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants
You can’t perform that action at this time.