All of lore.kernel.org
 help / color / mirror / Atom feed
* [Fuego] [PATCH] bash-completion: add completion script for ftc
@ 2019-02-25  0:42 Daniel Sangorrin
  2019-02-28  0:14 ` Tim.Bird
  0 siblings, 1 reply; 8+ messages in thread
From: Daniel Sangorrin @ 2019-02-25  0:42 UTC (permalink / raw)
  To: fuego

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


^ permalink raw reply related	[flat|nested] 8+ messages in thread
* [Fuego] Add bash-completion script for ftc
@ 2019-02-25  0:46 Daniel Sangorrin
  2019-02-25  0:47 ` [Fuego] [PATCH] bash-completion: add completion " Daniel Sangorrin
  0 siblings, 1 reply; 8+ messages in thread
From: Daniel Sangorrin @ 2019-02-25  0:46 UTC (permalink / raw)
  To: fuego

Aloha Tim!

I just send to you a couple of patches that enable bash
completion for the ftc command. This is something I proposed
during my talk at Fuego jamboree. Sorry that it took so long
to implement it. There are a few FIXTHIS but I'd say that it
is quite functional.

Regards,
Daniel



^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2019-03-01  0:41 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-02-25  0:42 [Fuego] [PATCH] bash-completion: add completion script for ftc Daniel Sangorrin
2019-02-28  0:14 ` 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

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.