Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

关于脚本编写规范及内置调用函数 #2332

Open
1 task done
ZiDuNet opened this issue Apr 10, 2024 · 2 comments
Open
1 task done

关于脚本编写规范及内置调用函数 #2332

ZiDuNet opened this issue Apr 10, 2024 · 2 comments

Comments

@ZiDuNet
Copy link

ZiDuNet commented Apr 10, 2024

Clear and concise description of the problem

脚本编写规范中,如何在拉库时候指定脚本执行时间及名称,标签等信息,有没有相关的说明文档呀,

对于如process.env.这种方法,系统内置的还有那些?

感谢大佬解答

Suggested solution

1

Alternative

No response

Additional context

No response

Validations

  • Check that there isn't already an issue that request the same feature to avoid creating a duplicate.
@whyour
Copy link
Owner

whyour commented Apr 21, 2024

目前没有内置函数,原生 nodejs 支持,依赖在依赖管理中安装

/**
 * 任务名称
 * name: script name
 * 定时规则
 * cron: 1 9 * * *
 */

这样可以直接任务名称和任务定时

@doyoman
Copy link

doyoman commented May 15, 2024

请问有没有考虑增加一些内置函数呢?比如常用到的,环境变量的增删改查
在青龙的环境中还要使用openapi来对环境变量进行增删改查感觉是有点绕圈子的...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants