Giter VIP home page Giter VIP logo

cli's People

Contributors

massad avatar

Stargazers

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

Watchers

 avatar  avatar  avatar

cli's Issues

API token from config not work

I put my API token in config.json but every time I run publish I get error "api token is required".
Same token like run parameter is work .

Error when trying to do a release from a container

Hello! I'm trying to run the 1.0.1 binary release of the ta-cli from inside a container but I keep getting the error message below

root@0aa8f31dd1a2:/ta-cli_linux# ./ta-cli publish --apk=$(pwd)/demo.apk --api_token=<MY_API_TOKEN> --app_id=<MY_APP_ID>
Using config file: /root/.ta-cli.json 


-------------- Releasing for Android only --------------
======> Preparing the release....
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x0 pc=0x848ba3]

goroutine 1 [running]:
ta-cli/cmd.preRelease(0x7ffc9b7fe941, 0x24, 0x7ffc9b7fe96f, 0xa, 0x1, 0x0, 0x0, 0x0, 0x0, 0x0, ...)
	/go/src/ta-cli/cmd/publish.go:222 +0x103
ta-cli/cmd.doAndroid(0x7ffc9b7fe941, 0x24, 0x7ffc9b7fe96f, 0xa, 0x7ffc9b7fe91e, 0x16, 0x1, 0x0, 0x7986b3)
	/go/src/ta-cli/cmd/publish.go:560 +0xf4
ta-cli/cmd.doPublish(0x0, 0x7)
	/go/src/ta-cli/cmd/publish.go:509 +0x7bb
ta-cli/cmd.glob..func3(0xc3dde0, 0xc000095c20, 0x0, 0x3, 0x0, 0x0)
	/go/src/ta-cli/cmd/publish.go:71 +0x45
github.com/spf13/cobra.(*Command).execute(0xc3dde0, 0xc000095bc0, 0x3, 0x3, 0xc3dde0, 0xc000095bc0)
	/go/pkg/mod/github.com/spf13/[email protected]/command.go:852 +0x472
github.com/spf13/cobra.(*Command).ExecuteC(0xc3e060, 0x0, 0xffffffff, 0xc000082058)
	/go/pkg/mod/github.com/spf13/[email protected]/command.go:960 +0x375
github.com/spf13/cobra.(*Command).Execute(...)
	/go/pkg/mod/github.com/spf13/[email protected]/command.go:897
ta-cli/cmd.Execute(...)
	/go/src/ta-cli/cmd/root.go:61
main.main()
	/go/src/ta-cli/main.go:6 +0x2e

The Dockerfile for this container is:

FROM ubuntu

COPY . /root

RUN apt update && apt install bash curl unzip -y \
    && curl -Ls https://github.com/testappio/cli/releases/download/v1.0.1/ta-cli_linux.zip -o ta-cli.zip \
    && unzip ta-cli.zip

WORKDIR /ta-cli_linux

RUN curl -L https://www.apkmirror.com/apk/sample-developer/test-dpc/test-dpc-8-0-1-release/ -o demo.apk \
    && ./ta-cli publish --apk=$(pwd)/demo.apk --api_token=<API_TOKEN> --app_id=<APP_ID>

and here's the content for the .ta-cli.json:

{
    "api_token": "<api_token>",
    "app_id": "<app_id>",
    "release": "android",
    "apk": "/",
    "ipa": "",
    "notify": "yes"
  }

Wrong data in help

On embedded help ta-cli -h show this sample config:
config.json { "api_token": "Your API Token", "appID": "Your App ID", "release": "both", "apk": "/path/to/app.apk", "ipa": "/path/to/app.ipa", "notify": "yes" }
but first row must be "apiToken":"Your API Token"

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.