You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: AGENTS.md
+2Lines changed: 2 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -30,6 +30,8 @@ Always ask questions before create proposal files if unsure about anything in th
30
30
-**Exports**: do not use `export default` for new/modified modules. Prefer named exports (e.g. `export { ServerManager }`) and named imports (e.g. `import { ServerManager } from '...'`).
31
31
- Keep TypeScript types explicit; avoid ad-hoc `any` when possible.
set<module> [name] [configName] configure config of picgo modules (uploader/transformer/plugin)
80
+
upload|u [input...] upload, go go go
81
+
use [module] [name] [configName] use module (uploader/transformer/plugin) of picgo
82
+
i18n [lang] change picgo language
83
+
uploader manage uploader configurations
84
+
help [command] display helpforcommand
91
85
```
92
86
93
87
#### Upload a picture from path
@@ -106,6 +100,41 @@ picgo upload
106
100
107
101
Thanks to [vs-picgo](https://github.com/Spades-S/vs-picgo) && [Spades-S](https://github.com/Spades-S) for providing the method to upload picture from clipboard.
108
102
103
+
#### Manage uploader configs
104
+
105
+
Since v1.8.0, PicGo-Core supports multiple configurations per uploader. Just like the configuration of Electron version of PicGo.
106
+
107
+
You can use `picgo set uploader <type> [name] [configName]` to configure different uploader configurations.
108
+
109
+
And you can use `picgo use uploader <type> [configName]` to switch between different uploader configurations.
110
+
111
+
For more details, you can use `picgo uploader -h` to check the help of uploader management:
112
+
113
+
```bash
114
+
Usage: picgo uploader [options] [command]
115
+
116
+
117
+
Options:
118
+
-h, --help display helpforcommand
119
+
120
+
Commands:
121
+
list [type] list uploader configurations
122
+
rename <type><oldName><newName> rename a config
123
+
copy <type><configName><newConfigName> copy a config (does not switch current uploader)
124
+
rm <type><configName> remove a config
125
+
```
126
+
127
+
128
+
#### Init a picgo plugin template
129
+
130
+
Note: the plugin's template initializer has moved to the standalone [picgo-init](https://github.com/PicGo/PicGo-Init) package.
131
+
132
+
You can use the following command to init a picgo plugin template:
0 commit comments