subscription_cli 0.1.4 copy "subscription_cli: ^0.1.4" to clipboard
subscription_cli: ^0.1.4 copied to clipboard

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.

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

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...

1
likes
140
points
58
downloads

Publisher

verified publisherkikt.top

Weekly Downloads

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

Repository (GitHub)
View/report issues

Documentation

API reference

License

Apache-2.0 (license)

Dependencies

archive, args, glob, http, path, yaml, yaml_edit

More

Packages that depend on subscription_cli