1identification message on startup 2======================================= 3{"_type": "program", "name": "Universal Ctags", "version": "5.9.0"} 4 5error on invalid command 6======================================= 7{"_type": "program", "name": "Universal Ctags", "version": "5.9.0"} 8{"_type": "error", "message": "unknown command name", "fatal": true} 9 10error on missing arguments 11======================================= 12{"_type": "program", "name": "Universal Ctags", "version": "5.9.0"} 13{"_type": "error", "message": "invalid generate-tags request", "fatal": true} 14 15error on invalid file 16======================================= 17{"_type": "program", "name": "Universal Ctags", "version": "5.9.0"} 18{"_type": "error", "message": "cannot open input file \"test.foo\"", "warning": true, "errno": 2, "perror": "No such file or directory"} 19{"_type": "completed", "command": "generate-tags"} 20 21generate tags from file 22======================================= 23{"_type": "program", "name": "Universal Ctags", "version": "5.9.0"} 24{"_type": "tag", "name": "Test", "path": "test.rb", "pattern": "/^class Test$/", "kind": "class"} 25{"_type": "tag", "name": "foobar", "path": "test.rb", "pattern": "/^ def foobar$/", "kind": "method", "scope": "Test", "scopeKind": "class"} 26{"_type": "tag", "name": "baz", "path": "test.rb", "pattern": "/^ def baz(a=1)$/", "kind": "method", "scope": "Test", "scopeKind": "class"} 27{"_type": "completed", "command": "generate-tags"} 28 29process multiple commands 30======================================= 31{"_type": "program", "name": "Universal Ctags", "version": "5.9.0"} 32{"_type": "tag", "name": "Test", "path": "test.rb", "pattern": "/^class Test$/", "kind": "class"} 33{"_type": "tag", "name": "foobar", "path": "test.rb", "pattern": "/^ def foobar$/", "kind": "method", "scope": "Test", "scopeKind": "class"} 34{"_type": "tag", "name": "baz", "path": "test.rb", "pattern": "/^ def baz(a=1)$/", "kind": "method", "scope": "Test", "scopeKind": "class"} 35{"_type": "completed", "command": "generate-tags"} 36{"_type": "tag", "name": "say_hello", "path": "test.c", "pattern": "/^void say_hello() {$/", "typeref": "typename:void", "kind": "function"} 37{"_type": "tag", "name": "main", "path": "test.c", "pattern": "/^int main(int argc, char **argv) {$/", "typeref": "typename:int", "kind": "function"} 38{"_type": "completed", "command": "generate-tags"} 39 40generate tags from data 41======================================= 42{"_type": "program", "name": "Universal Ctags", "version": "5.9.0"} 43{"_type": "tag", "name": "Test", "path": "foobar.rb", "pattern": "/^class Test$/", "kind": "class"} 44{"_type": "tag", "name": "foobar", "path": "foobar.rb", "pattern": "/^ def foobar$/", "kind": "method", "scope": "Test", "scopeKind": "class"} 45{"_type": "tag", "name": "baz", "path": "foobar.rb", "pattern": "/^ def baz(a=1)$/", "kind": "method", "scope": "Test", "scopeKind": "class"} 46{"_type": "completed", "command": "generate-tags"} 47