-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
黄凯
committed
Jun 13, 2019
1 parent
eb6cf14
commit 383716b
Showing
8 changed files
with
2,079 additions
and
1,585 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,48 +1,65 @@ | ||
# fireworks-cool | ||
#### 使用electron构建的一个放烟花的小玩意。 | ||
|
||
#### 使用electron构建的一个放烟花的小玩意。 | ||
|
||
## 使用 🐌 | ||
|
||
1. 首先需要确保你的系统上拥有`NodeJS`并且可以运行`npm`命令。 | ||
|
||
2. 下载全局包(如果没有安装过特定版本的`electron`的话,这个过程可能会比较耗时,国内建议使用淘宝的镜像源)。 | ||
2. 下载全局包(这个过程可能会比较耗时,国内建议使用淘宝的镜像源,如果可以翻墙的话,那么下载就会飞快)。 | ||
|
||
```sh | ||
npm install -g fireworks-cool | ||
``` | ||
|
||
3. 运行程序。 | ||
|
||
```sh | ||
fireworks-cool | ||
``` | ||
|
||
## 参数 🐍 | ||
|
||
1. 运行 | ||
|
||
```sh | ||
fireworks-cool | ||
``` | ||
|
||
2. 添加文本 | ||
|
||
假如我们输入文本HelloWorld如下(目前并不支持特殊字符),待提示设置成功后运行程序 | ||
|
||
```sh | ||
fireworks-cool --test=HelloWorld | ||
``` | ||
|
||
3. 查看文本列表 | ||
|
||
```sh | ||
fireworks-cool --list | ||
``` | ||
|
||
4. 删除某个文本 | ||
|
||
参数为number类型,就比如使用列表中第一行文本,如下: | ||
参数为number类型,就比如删除列表中第一行文本,如下: | ||
|
||
```sh | ||
fireworks-cool --delete=1 | ||
``` | ||
|
||
5. 使用列表中某个文本 | ||
|
||
参数为number类型,就比如使用列表中第五行文本,如下: | ||
|
||
```sh | ||
fireworks-cool --use=5 | ||
``` | ||
|
||
6. 清空所有文本 | ||
|
||
```sh | ||
fireworks-cool --clear | ||
``` | ||
> 注:在你快要出生的时候,输入:上上下下左右左右BABA,这样你一出生就有很多条命还有一份超棒的工作。 | ||
|
||
> 注:输入`cool`让烟花变得更酷。 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.