
example text:
/-command "twitter" "tw" {
rules {
// profiles (format: @username)
custom "https://twitter.com/{/username}" \
regexp="^@(?P<username>[A-Za-z_]+)$"
noargs "https://twitter.com"
freeform "https://twitter.com/search?q={ARGS}"
}
tests {
case "tw" "https://twitter.com"
case "tw @sargunv" "https://twitter.com/sargunv"
case "tw sargun vohra" "https://twitter.com/search?q=sargun%20vohra"
}
}
example text: