0 purchases
subscription cli
A cli for subscribing some release resources #
About config file #
The config file is yaml file, and
the file name is scli.yaml.
This is an example file.
Environment Variables #
The config file support Environment Variables.
You need use ${ENV_NAME} to use Environment Variables.
like this:
config:
githubToken: ${GITHUB_TOKEN}
copied to clipboard
The Environment Variables will be replaced by the real value when the program is running.
config #
The config section is the global config.
Every config item in this section will be used in every job.
Config for vscode
Support use yaml schema to help you write config file in vscode.
Install the yaml schema plugin.
Add the schema in your workspace setting.
{
"yaml.schemas": {
"https://raw.githubusercontent.com/CaiJingLong/subscription_cli/main/scli_schema.json": "scli.yaml"
}
}
copied to clipboard
githubToken
The github token for github api.
proxy
The proxy for http request.
If you use clash, you can use
config:
proxy:
host: localhost
port: 7890
copied to clipboard
jobs #
The jobs section is the job list.
Every job will be run in order.
job params
Some job have variable params.
The params will be used in the job definition.
You can use #{paramName} to use the params.
But the variable params not support all place.
You can see option table to know the variable params support or not.
Some job have inner variable params.
And some params support glob pattern.
base option
The job have some base option.
option
type
description
required
default value
name
string
the job name
true
description
string
the job description
false
null
type
string
the job type
true
enabled
boolean
the job is enabled
false
true
overwrite
boolean
the job will overwrite the old data
false
false
workingDir
string
the job working dir
false
the current dir
params
object
the job params
false
null
jobs:
- name: job name
type: See the type in the next section
copied to clipboard
Github release
type: github-release or gr
The job will get the github release assets.
option
type
description
required
default value
support variable params
support glob
owner
string
the github repo owner
true
false
false
repo
string
the github repo name
true
false
false
asset
string
the asset name
true
true
true
inner variable params:
param name
description
version
the name of release
http job
Developing...
For personal and professional use. You cannot resell or redistribute these repositories in their original state.
There are no reviews.