Debian Codegraph @

runtime/queries/tilt/injections.scm

raw symbols SCIP
1 ((comment) @injection.content
2 (#set! injection.language "comment"))
3
4 ; https://docs.tilt.dev/api.html#api.local
5 ; https://docs.tilt.dev/api.html#api.run
6 ; e.g. `local("git rev-parse --show-toplevel")`
7 (call
8 function: (identifier) @_function (#any-of? @_function "local" "run")
9 arguments: (argument_list . (string (string_content) @injection.content))
10 (#set! injection.language "bash"))
11
12 ; https://docs.tilt.dev/api.html#api.local_resource
13 ; https://docs.tilt.dev/api.html#api.custom_build
14 ; e.g.
15 ; ```
16 ; custom_build(
17 ; 'gcr.io/my-project/frontend-server',
18 ; 'docker build -t $EXPECTED_REF .',
19 ; ['.'],
20 ; )
21 ; ```
22 (call
23 function: (identifier) @_function (#any-of? @_function "custom_build" "local_resource")
24 arguments: (argument_list . (string) (string (string_content) @injection.content))
25 (#set! injection.language "bash"))
26
27 ; https://docs.tilt.dev/api.html#api.k8s_custom_deploy
28 ; e.g.
29 ; ```
30 ; local_resource(
31 ; 'local-myserver',
32 ; cmd='go build ./cmd/myserver',
33 ; serve_cmd='./myserver --port=8001',
34 ; deps=['cmd/myserver']
35 ; )
36 ; ```
37 (call
38 arguments: (argument_list
39 (keyword_argument
40 name: (identifier) @_keyword_arg (#any-of? @_keyword_arg
41 "cmd"
42 "serve_cmd"
43 "apply_cmd"
44 "delete_cmd"
45 "cmd_bat"
46 "apply_cmd_bat"
47 "serve_cmd_bat"
48 "delete_cmd_bat"
49 "command"
50 "command_bat"
51 "entrypoint")
52 value: (string (string_content) @injection.content)))
53 (#set! injection.language "bash"))