hsn

command module
v0.1.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 29, 2020 License: GPL-3.0 Imports: 1 Imported by: 0

README

Hoshino-cli

安装方法

Windows的简单粗暴方法:下载release中的对应文件,改名为hsn.exe扔到C:\Windows\System32 (只要给hsn.exe添加到环境变量Path路径就行了)

Linux的简单粗暴方法:下载release中的对应文件,改名为hsn扔到\bin文件夹下 (只要有环境变量就行了)

使用方法

设置CLI

hsn set

  • -p (--path) : 填写Hoshino工程目录的绝对路径,或者填写 . 将使用当前目录
  • -i (--image) : 设置使用Github的镜像源地址,默认为 https://github.com
  • --pip : 设置安装python依赖工具,默认为 pip3

例如

  • hsn set --path=/root/hoshino
  • hsn set -i=https://github.com
  • hsn set --pip="python38 -m pip"

可用镜像源

  • https://hub.fastgit.org
  • https://github.com.cnpmjs.org
  • https://github.bajins.com
  • https://github.rc1844.workers.dev
获取可用插件列表

hsn list

获取已适配插件列表及其序号

安装Hoshino插件

hsn install

请确保安装了git, python

例如 hsn install music

可以通过序号安装

例如 hsn install 1

更新CLI

hsn update

生成发布插件的json文件

hsn export [plugin name]

然后填写仓库地址,所需依赖和资源文件就行了

bucket文件夹保存了已适配插件的信息, 你可以向本项目提交issue或pr来发布您的插件到hsn插件仓库 插件适配指南

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL