GithubHelp home page GithubHelp logo

soracom / soracom-cli Goto Github PK

View Code? Open in Web Editor NEW
29.0 29.0 12.0 5.55 MB

Provides `soracom` command, a command line tool for calling SORACOM APIs. SORACOM API を呼び出すためのコマンドラインツール soracom を提供します。

License: MIT License

Go 80.68% Shell 18.16% Dockerfile 0.09% Makefile 1.08%

soracom-cli's People

Contributors

0x6b avatar bearmini avatar hara avatar jamiekin avatar kazntree avatar kenichiro-kimura avatar ks6088ts avatar makoto-soracom avatar mechatrax-kiyonaga avatar moznion avatar tfukushima avatar tsujitadashi avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

soracom-cli's Issues

`soracom soralets upload` doesn't seem to work

I ran the followings on SORACOM API client v0.10.1.

$ soracom version
SORACOM API client v0.10.1

$ SORACOM_VERBOSE=1 soracom soralets upload --soralet-id my-test --content-type application/octet-stream --body @example_soralet.wasm
POST /v1/auth? HTTP/1.1
Host: api.soracom.io
Content-Type: application/json
User-Agent: soracom-cli/0.10.1
X-Soracom-Lang: en

{"authKeyId":"keyId-*","authKey":"secret-*"}
HTTP/1.1 200 OK
Transfer-Encoding: chunked
Cache-Control: no-cache
Connection: keep-alive
Content-Type: application/json
Date: Mon, 20 Sep 2021 00:32:34 GMT
X-Amzn-Trace-Id: Root=1-6147d6a2-3d60553d237acd9f787b0828
X-Soracom-Cli-Version: v0.10.1


==========
Error: invalid json format specified for `--body` parameter: invalid character '\x00' looking for beginning of value
Usage:
  soracom soralets upload [flags]

Flags:
      --body string           JSON string or @filename for API request body.
      --content-type string   Content type of the file to upload
  -h, --help                  help for upload
      --soralet-id string     The identifier of Soralet.

Global Flags:
      --api-key string         Specify API key otherwise soracom-cli performs authentication on behalf of you
      --api-token string       Specify API token otherwise soracom-cli performs authentication on behalf of you
      --auth-key string        Specify AuthKey to be used for authentication. If both --auth-key-id and --auth-key are specified, soracom-cli works without profiles. It means you don't need to run 'soracom configure' before running the command. This may be suitable for temporary execution. Please don't forget specifying these options along with --coverage-type.
      --auth-key-id string     Specify AuthKeyId to be used for authentication. If both --auth-key-id and --auth-key are specified, soracom-cli works without profiles. It means you don't need to run 'soracom configure' before running the command. This may be suitable for temporary execution. Please don't forget specifying these options along with --coverage-type.
      --coverage-type string   Specify coverage type, 'g' for Global, 'jp' for Japan
      --no-retry-on-error      Specify soracom-cli not to retry even if the API endpoint returns an error
      --profile string         Specify profile name
      --raw-output             Specify soracom-cli to output raw response from the API endpoint

Do not encode `'` into `\u0027` in error messages

as-is:

Error: {"code":"COM0017","message":"SAM user \u0027makoto-api-test\u0027 doesn\u0027t have permission \u0027Stats:getAirStatsOfSim\u0027 to perform this action. Please ask your administrator for SAM permission configurations/statements. After the correct permission has been applied, please sign in again and retry it."}

to-be:

Error: {"code":"COM0017","message":"SAM user 'makoto-api-test' doesn't have permission 'Stats:getAirStatsOfSim' to perform this action. Please ask your administrator for SAM permission configurations/statements. After the correct permission has been applied, please sign in again and retry it."}

add issue / pull request templates

I'd like to add issue/pull request templates to automate routine tasks.
This would be beneficial for contributors to figure out what should they do.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.