All of lore.kernel.org
 help / color / mirror / Atom feed
From: Daniel Sangorrin <daniel.sangorrin@toshiba.co.jp>
To: fuego@lists.linuxfoundation.org
Subject: [Fuego] [PATCH] bash-completion: add completion script for ftc
Date: Mon, 25 Feb 2019 09:42:21 +0900	[thread overview]
Message-ID: <1551055341-35354-1-git-send-email-daniel.sangorrin@toshiba.co.jp> (raw)

As proposed during the Fuego Jamboree I have added bash
completion for the ftc command.

Signed-off-by: Daniel Sangorrin <daniel.sangorrin@toshiba.co.jp>
---
 Dockerfile           | 5 ++++-
 Dockerfile.nojenkins | 5 ++++-
 2 files changed, 8 insertions(+), 2 deletions(-)

diff --git a/Dockerfile b/Dockerfile
index b183e1a..80e799a 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -45,7 +45,8 @@ RUN pip install filelock
 
 # Fuego command dependencies
 RUN apt-get update && apt-get -yV install \
-	git sshpass openssh-client sudo net-tools wget curl lava-tool
+	git sshpass openssh-client sudo net-tools wget curl lava-tool \
+	bash-completion
 
 # Default SDK for testing locally or on an x86 board
 RUN apt-get update && apt-get -yV install \
@@ -202,6 +203,8 @@ RUN chown -R jenkins:jenkins $JENKINS_HOME/
 # ==============================================================================
 
 RUN ln -s /fuego-core/scripts/ftc /usr/local/bin/
+COPY fuego-core/scripts/ftc_completion.sh /etc/bash_completion.d/ftc
+RUN echo ". /etc/bash_completion" >> /root/.bashrc
 
 # ==============================================================================
 # Lava
diff --git a/Dockerfile.nojenkins b/Dockerfile.nojenkins
index f3392f9..2883f54 100644
--- a/Dockerfile.nojenkins
+++ b/Dockerfile.nojenkins
@@ -56,7 +56,8 @@ RUN pip install filelock
 
 # Fuego command dependencies
 RUN apt-get update && apt-get -yV install \
-	git sshpass openssh-client sudo net-tools wget curl lava-tool
+	git sshpass openssh-client sudo net-tools wget curl lava-tool \
+	bash-completion
 
 # Default SDK for testing locally or on an x86 board
 RUN apt-get update && apt-get -yV install \
@@ -113,6 +114,8 @@ RUN /bin/bash -c 'git clone https://github.com/tbird20d/fserver.git /usr/local/l
 # ==============================================================================
 
 RUN ln -s /fuego-core/scripts/ftc /usr/local/bin/
+COPY fuego-core/scripts/ftc_completion.sh /etc/bash_completion.d/ftc
+RUN echo ". /etc/bash_completion" >> /root/.bashrc
 
 # ==============================================================================
 # Lava
-- 
2.7.4


             reply	other threads:[~2019-02-25  0:42 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-02-25  0:42 Daniel Sangorrin [this message]
2019-02-28  0:14 ` [Fuego] [PATCH] bash-completion: add completion script for ftc Tim.Bird
2019-02-25  0:46 [Fuego] Add bash-completion " Daniel Sangorrin
2019-02-25  0:47 ` [Fuego] [PATCH] bash-completion: add completion " Daniel Sangorrin
2019-02-28  0:21   ` Tim.Bird
2019-02-28  0:30   ` Tim.Bird
2019-02-28  7:47     ` daniel.sangorrin
2019-02-28 23:55       ` Tim.Bird
2019-03-01  0:41         ` daniel.sangorrin

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1551055341-35354-1-git-send-email-daniel.sangorrin@toshiba.co.jp \
    --to=daniel.sangorrin@toshiba.co.jp \
    --cc=fuego@lists.linuxfoundation.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.