Skip to content

Zsh completion for docker-compose#1325

Merged
bfirsh merged 2 commits intodocker:masterfrom
sdurrheimer:master
May 29, 2015
Merged

Zsh completion for docker-compose#1325
bfirsh merged 2 commits intodocker:masterfrom
sdurrheimer:master

Conversation

@sdurrheimer
Copy link
Copy Markdown

Here my work on a zsh completion script with updated completion.md doc.

Signed-off-by: Steve Durrheimer s.durrheimer@gmail.com

@sdurrheimer
Copy link
Copy Markdown
Author

Anyone ? 😕

@aanand
Copy link
Copy Markdown

aanand commented Apr 29, 2015

Thanks for this! I'm going to have a look at it soon - I'll be its first customer.

Can any of the bash and zsh completion be factored out to a common set of functions?

@sdurrheimer
Copy link
Copy Markdown
Author

Some of them might be, but this will make the installation process more complex forcing people to install 2 files (not in the same directory). This will therefore create a dependency of a file to another.

Maybe @albers can also give us his opinion.

@albers
Copy link
Copy Markdown

albers commented Apr 30, 2015

Cool, zsh completion finally arrived. Thanks @sdurrheimer!

I'm not familiar with either using or coding zsh completion, but looking at the code I see a lot of potential for shared code. I like the idea to create a shared lib in order to bundle the efforts for both completions.

But I also share sdurrheimers concerns about the increased complexity of the installation process. Where should the shared lib be placed? People will run into problems with file permissions.
This would be different if docker-compose had native installer packages like docker has.

More important, I'm not in favour of creating a shared lib unless there are tests.
I was unsuccessful in creating tests for the bash completion. Splitting out functionality into a shared lib increases the danger of introducing regressions. This is exceptionally the case when the lib is used by different "languages" / "frameworks" / "envrionments". Personally, I would feel very uncomfortable working on the shared lib due to my lack of zsh skills.

Summing up, I'm against the shared lib.

@bfirsh
Copy link
Copy Markdown

bfirsh commented May 20, 2015

Needs a rebase - sorry @sdurrheimer. :(

@albers
Copy link
Copy Markdown

albers commented May 20, 2015

@sdurrheimer
Hi Steve, there's a new command migrate_to_labels, see #1432.
It is top-level and has neither options nor args.

@sdurrheimer
Copy link
Copy Markdown
Author

@albers Ok, will do.

@bfirsh Rebase done and commit squashed. I will keep it up to date if I see other commits.

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Nice idea to compute the URL here. Please adjust the Release process section in CONTRIBUTING.md. It says the script URL should be updated.

Signed-off-by: Steve Durrheimer <s.durrheimer@gmail.com>
Signed-off-by: Steve Durrheimer <s.durrheimer@gmail.com>
@sdurrheimer
Copy link
Copy Markdown
Author

I just added --x-smart-recreate and -v. Thx @albers.

@albers
Copy link
Copy Markdown

albers commented May 29, 2015

@aanand @bfirsh Any chance to get zsh completion this into 1.7?

@aanand
Copy link
Copy Markdown

aanand commented May 29, 2015

LGTM

I've given this a quick try and I like it a lot. Would be nice to get it in for 1.7, but I don't know if it should count as code for the purposes of "code freeze" - which was three days ago.

@bfirsh
Copy link
Copy Markdown

bfirsh commented May 29, 2015

Naah it's tooling. The code freeze is for features.

@bfirsh
Copy link
Copy Markdown

bfirsh commented May 29, 2015

LGTM

bfirsh added a commit that referenced this pull request May 29, 2015
Zsh completion for docker-compose
@bfirsh bfirsh merged commit b638728 into docker:master May 29, 2015
@aanand
Copy link
Copy Markdown

aanand commented May 29, 2015

zorro

@albers albers mentioned this pull request May 29, 2015
@albers
Copy link
Copy Markdown

albers commented May 31, 2015

@bfirsh

Naah it's tooling. The code freeze is for features.

This is an important point for me. Although I try to keep up with new features that are relevant for completion, I always end up with finding some in the release notes of the RC.

cc @jfrazelle @tianon - also applies to Docker completion.

aanand pushed a commit to aanand/fig that referenced this pull request Jun 9, 2015
Zsh completion for docker-compose
(cherry picked from commit b638728)

Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>

Conflicts:
	docs/completion.md
@tianon
Copy link
Copy Markdown
Contributor

tianon commented Jun 19, 2015

I know I'm late to the discussion (:innocent:), but I'm definitely +1 to including fixes and improvements to things like completion even after code freeze since it makes for a more polished release overall. :+1:

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.

6 participants