Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

按照你的文件出现运行错误 #16

Closed
wangxiaoyao opened this issue Mar 18, 2019 · 1 comment

Comments

@wangxiaoyao
Copy link

@wangxiaoyao wangxiaoyao commented Mar 18, 2019

debug 内容如下: 可以解释一下是哪里的问题吗 谢谢

[2019-03-18 13:13:32][ERROR: action.script] /Users/wangxiaoyao/Library/Caches/com.runningwithcrayons.Alfred-3/Workflow Scripts/36DC5873-6F58-4398-95A5-06A330035037:2424:2455: execution error: Error: command account receives zero or three args, received 2

Usage:
  qshell account [<AccessKey> <SecretKey> <Name>] [flags]

Flags:
  -h, --help        help for account
  -w, --overwrite   overwrite account or not when account exists in local db, by default not overwrite

Global Flags:
  -C, --config string   config file (default is $HOME/.qshell.json)
  -d, --debug           debug mode
  -L, --local           use current directory as config file path
  -v, --version         show version

command account receives zero or three args, received 2
@wangxiaoyao

This comment has been minimized.

Copy link
Author

@wangxiaoyao wangxiaoyao commented Mar 18, 2019

解决方法:

作者写的osascript代码文件中(如下)

-- qiniu account set
    set account_commond to "/usr/local/bin/qshell account " & AccessKey & " " & SecretKey

这段后面添加

& " " & fileName

然后顺利执行。

    -- qiniu account set
    set account_commond to "/usr/local/bin/qshell account " & AccessKey & " " & SecretKey & " " & fileName

原因: 七牛云qshell运行中缺少第三个参数

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
1 participant
You can’t perform that action at this time.