Expand description
Config for acick.
§Templates
In some fields, you can use Tera template. Tera template is similar to Jinja2 and Django templates. See Tera documentation for details.
Following filters are available in addition to built-in filters of Tera.
camel
: converts string tocamelCase
pascal
: converts string toPascalCase
snake
: converts string tosnake_case
kebab
: converts string tokebab-case
Available variables depend on fields. See Field features section for details.
§Field features
Fields have following features.
§[c]
Command template field
The field is recognized as an array of Tera templates with the following variables available:
command
(str): command to be executed on shell
§[t]
Target template field
The field is recognized as a Tera template with the following variables available:
service
(str): id of service (e.g.:atcoder
)contest
(str): id of contest (e.g.:arc100
)problem
(str): id of problem (e.g.:C
)
§[p]
Problem template field
The field is recognized as a Tera template with the following variables available:
service
(object): object that describes servicecontest
(object): object that describes contestproblem
(object): object that describes problem
§[s]
Shell-expanded field
The field is processed with shell-like expansions.
- Tilde
~
is expanded to the home directory. - Environment variables are expanded into their values.
When combined with Tera template, the field is first processed as a template and then expanded.