Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(179)

Issue 100463007: Added basic completion (the commands) for gclient. (Closed)

Created:
6 years, 11 months ago by Sheridan Rawlins
Modified:
6 years, 11 months ago
Reviewers:
bradnelson, bradn
CC:
chromium-reviews, Dirk Pranke, cmp-cc_chromium.org, M-A Ruel, iannucci+depot_tools_chromium.org, ilevy-cc_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/tools/depot_tools.git@master
Visibility:
Public.

Description

Added basic completion (the commands) for gclient. To try it out, do . $DEPOT_TOOLS/gclient_completion.sh Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=245134

Patch Set 1 #

Patch Set 2 : Let complete use the defaults unless using the help command. #

Total comments: 11

Patch Set 3 : Added more comments and some use sed instead of grep with perlre. #

Patch Set 4 : Fixed flags & added comments. #

Patch Set 5 : untabify. #

Patch Set 6 : removed log. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+76 lines, -0 lines) Patch
A gclient_completion.sh View 1 2 3 4 5 1 chunk +76 lines, -0 lines 0 comments Download

Messages

Total messages: 9 (0 generated)
Sheridan Rawlins
6 years, 11 months ago (2014-01-04 00:47:03 UTC) #1
bradn
https://codereview.chromium.org/100463007/diff/40001/gclient_completion.sh File gclient_completion.sh (right): https://codereview.chromium.org/100463007/diff/40001/gclient_completion.sh#newcode1 gclient_completion.sh:1: # Run from either local inclusion or /etc/bash_completions.d So ...
6 years, 11 months ago (2014-01-07 02:04:48 UTC) #2
Sheridan Rawlins
Hmm, the cost (of getting working on all scenarios & install dependencies) to benefit ratio ...
6 years, 11 months ago (2014-01-16 01:12:58 UTC) #3
bradn
I didn't mean to shut down landing this with too much scope. I'm fine with ...
6 years, 11 months ago (2014-01-16 01:27:04 UTC) #4
Sheridan Rawlins
Thanks for the nudge; spent a little longer with it and got it working on ...
6 years, 11 months ago (2014-01-16 03:48:25 UTC) #5
bradn
lgtm https://codereview.chromium.org/100463007/diff/40001/gclient_completion.sh File gclient_completion.sh (right): https://codereview.chromium.org/100463007/diff/40001/gclient_completion.sh#newcode5 gclient_completion.sh:5: gclient -h | grep -P '(?<= (?:\x1b)\[32m)([\w\d]+)' -o ...
6 years, 11 months ago (2014-01-16 04:48:48 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/scr@chromium.org/100463007/170001
6 years, 11 months ago (2014-01-16 05:01:51 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/scr@chromium.org/100463007/220001
6 years, 11 months ago (2014-01-16 05:14:45 UTC) #8
commit-bot: I haz the power
6 years, 11 months ago (2014-01-16 05:16:41 UTC) #9
Message was sent while issue was closed.
Change committed as 245134

Powered by Google App Engine
This is Rietveld 408576698