Sha256: d921c3f6aae70f3fb85627bf532f5004ba1a56b7b4d1b7a7d9e719dfaa0817bd

Contents?: true

Size: 1.2 KB

Versions: 1

Compression:

Stored size: 1.2 KB

Contents

# Copyright: 2016 Aman Gupta
# License: GPL-2

CTAGS=$1

echo identification message on startup
echo =======================================
${CTAGS} --interactive < /dev/null

echo
echo error on invalid command
echo =======================================
echo '{"command":"foobar"}' | ${CTAGS} --interactive

echo
echo error on missing arguments
echo =======================================
echo '{"command":"generate-tags"}' | ${CTAGS} --interactive

echo
echo error on invalid file
echo =======================================
echo '{"command":"generate-tags", "filename":"test.foo"}' | ${CTAGS} --interactive

echo
echo generate tags from file
echo =======================================
echo '{"command":"generate-tags", "filename":"test.rb"}' | ${CTAGS} --interactive

echo
echo process multiple commands
echo =======================================
(
  echo '{"command":"generate-tags", "filename":"test.rb"}'
  echo '{"command":"generate-tags", "filename":"test.c"}'
) | ${CTAGS} --interactive

echo
echo generate tags from data
echo =======================================
size=$(stat -f %z test.rb)
(
  echo '{"command":"generate-tags", "filename":"test.rb", "size":'$size'}'
  cat test.rb
) | ${CTAGS} --interactive

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
ctags.rb-1.1.3 ext/vendor/ctags/Tmain/interactive-mode.d/run.sh