subscription_cli 0.1.4

SDKdartflutter
Platformandroidioswindowslinuxmacos

Help you to manage your subscription, such as upgrade some package/app to the latest version.

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}

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"
  }
}

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

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.

optiontypedescriptionrequireddefault value
namestringthe job nametrue
descriptionstringthe job descriptionfalsenull
typestringthe job typetrue
enabledbooleanthe job is enabledfalsetrue
overwritebooleanthe job will overwrite the old datafalsefalse
workingDirstringthe job working dirfalsethe current dir
paramsobjectthe job paramsfalsenull
jobs:
  - name: job name
    type: See the type in the next section

Github release

type: github-release or gr

The job will get the github release assets.

optiontypedescriptionrequireddefault valuesupport variable paramssupport glob
ownerstringthe github repo ownertruefalsefalse
repostringthe github repo nametruefalsefalse
assetstringthe asset nametruetruetrue

inner variable params:

param namedescription
versionthe name of release

http job

Developing...