#!/usr/bin/env bash

cd "$(dirname "${BASH_SOURCE[0]}")" || exit

cat ctagsdotd/*.ctags | awk '
BEGIN {
  print "// Code generated by gen.sh. DO NOT EDIT."
  print "package ctags"
  print "var ctagsArgs = []string{"
}

/^-/ { print "`" $0 "`," }

END { print "}" }
' >args.go

gofmt -w args.go
