Page Menu
Home
DevCentral
Search
Configure Global Search
Log In
Files
F11724768
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Referenced Files
None
Subscribers
None
View Options
diff --git a/files/opt/arcanist/support/shell/rules/bash-rules.sh b/files/opt/arcanist/support/shell/rules/bash-rules.sh
new file mode 100644
index 0000000..759b750
--- /dev/null
+++ b/files/opt/arcanist/support/shell/rules/bash-rules.sh
@@ -0,0 +1,45 @@
+_arcanist_complete_arc ()
+{
+ COMPREPLY=()
+
+ RESULT=$(echo | arc shell-complete \
+ --current ${COMP_CWORD} \
+ -- \
+ "${COMP_WORDS[@]}" \
+ 2>/dev/null)
+
+ if [ $? -ne 0 ]; then
+ return $?
+ fi
+
+ if [ "$RESULT" == "<compgen:file>" ]; then
+ RESULT=$( compgen -A file -- ${COMP_WORDS[COMP_CWORD]} )
+ fi
+
+ local IFS=$'\n'
+ COMPREPLY=( $RESULT )
+}
+complete -F _arcanist_complete_arc -o filenames arc
+
+_arcanist_complete_phage ()
+{
+ COMPREPLY=()
+
+ RESULT=$(echo | phage shell-complete \
+ --current ${COMP_CWORD} \
+ -- \
+ "${COMP_WORDS[@]}" \
+ 2>/dev/null)
+
+ if [ $? -ne 0 ]; then
+ return $?
+ fi
+
+ if [ "$RESULT" == "<compgen:file>" ]; then
+ RESULT=$( compgen -A file -- ${COMP_WORDS[COMP_CWORD]} )
+ fi
+
+ local IFS=$'\n'
+ COMPREPLY=( $RESULT )
+}
+complete -F _arcanist_complete_phage -o filenames phage
File Metadata
Details
Attached
Mime Type
text/x-diff
Expires
Thu, Sep 18, 17:47 (18 h, 41 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2991175
Default Alt Text
(1 KB)
Attached To
Mode
rDARC nasqueron/arcanist Docker image
Attached
Detach File
Event Timeline
Log In to Comment