GithubHelp home page GithubHelp logo

masonamerica / mason-cli Goto Github PK

View Code? Open in Web Editor NEW
10.0 15.0 2.0 6.3 MB

The Mason CLI provides command line tools to help you manage your configurations in the Mason Platform.

Home Page: https://docs.bymason.com/platform/cli

License: Other

Python 99.39% Dockerfile 0.61%
mason-platform mason-cli cli tools mason

mason-cli's Introduction

The Mason Command Line tools (mason-cli)

The Mason Command Line tools (or mason-cli) provides command line interfaces that allow you to publish, query, and deploy your configurations and packages to your devices in the field.

For further details regarding the mason-cli and the mason platform See http://docs.bymason.com/getting-started/

mason-cli's People

Contributors

bekriebel avatar scorpiodawg avatar trevorhalvorson avatar

Stargazers

 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

mason-cli's Issues

Keystore alias not supported

If a keystore alias other than CERT is used, APK.parse_cert() doesn't find the certificate in META-INF because it's named after the alias and not CERT.RSA. This leads to this error when registering an APK:

----------- ERROR -----------
File Name: myapp.apk
Details:
  Mason Platform does not currently support v2 signing scheme for APK's.
  Full Apk (v2) signing is included for Nougat devices and an option in
  Android Studio 2.3+. Please select to either sign the APK with both v1
  (Jar Signature) and v2 (Full APK Signature) or v1 alone. For further
  details reference https://source.android.com/security/apksigning/index.html#
-----------------------------

`mason login` on Amazon Linux: "TypeError: request() got an unexpected keyword argument 'json'"

Running mason login on my Mac OS machine works fine. However, on Amazon Linux, it crashes:

$ mason login
User: [...]
Password: [...]
Traceback (most recent call last):
File "/usr/local/bin/mason", line 11, in
load_entry_point('mason-cli==0.95', 'console_scripts', 'mason')()
File "/usr/local/lib64/python2.7/site-packages/click/core.py", line 764, in call
return self.main(*args, **kwargs)
File "/usr/local/lib64/python2.7/site-packages/click/core.py", line 717, in main
rv = self.invoke(ctx)
File "/usr/local/lib64/python2.7/site-packages/click/core.py", line 1137, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/usr/local/lib64/python2.7/site-packages/click/core.py", line 956, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/usr/local/lib64/python2.7/site-packages/click/core.py", line 555, in invoke
return callback(*args, **kwargs)
File "/usr/local/lib64/python2.7/site-packages/click/decorators.py", line 64, in new_func
return ctx.invoke(f, obj, *args, **kwargs)
File "/usr/local/lib64/python2.7/site-packages/click/core.py", line 555, in invoke
return callback(*args, **kwargs)
File "/usr/local/lib/python2.7/site-packages/mason.py", line 297, in login
if not config.mason.authenticate(user, password):
File "/usr/local/lib/python2.7/site-packages/masonlib/internal/mason.py", line 396, in authenticate
r = requests.post(self.store.auth_url(), json=payload)
File "/usr/lib/python2.7/dist-packages/requests/api.py", line 88, in post
return request('post', url, data=data, **kwargs)
File "/usr/lib/python2.7/dist-packages/requests/api.py", line 44, in request
return session.request(method=method, url=url, **kwargs)
TypeError: request() got an unexpected keyword argument 'json'

The password I type doesn't matter.

Here's the output of mason version:

$ mason version
mason (Mason America) 0.95
Copyright (C) 2018 Mason America
License Apache 2.0 https://www.apache.org/licenses/LICENSE-2.0

I use an Amazon Linux box as my primary dev environment, so I'd appreciate having this fixed!

Update doc for `mason register`

The online docs list the registration commands for bootanimation and splash like so:

mason register media bootanimation [NAME] [VERSION]

But according to the cli (mason register media bootanimation -h) the correct commands are like this:

mason register media bootanimation [OPTIONS] NAME VERSION MEDIA

Similarly, apk is listed in the online docs as:

mason register apk [NAME] [VERSION]

But according to the cli it should be:

mason register apk [OPTIONS] APKS...

Similarly, config is listed in the online docs as:

mason register config [NAME] [VERSION]

But according to the cli it should be:

mason register config [OPTIONS] CONFIGS...

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.