Coder Social home page Coder Social logo

cli's People

Contributors

aaroncrawfis avatar abhirockzz avatar amanbha avatar amulyavarote avatar anhldbk avatar artursouza avatar beiwei30 avatar berndverst avatar daixiang0 avatar dependabot[bot] avatar dmitsh avatar hueifeng avatar italypaleale avatar likamrat avatar lmwf avatar marviniter avatar mukundansundar avatar philliphoff avatar pkedy avatar pravinpushkar avatar pruthvidhodda avatar shalabhms avatar shivamkm07 avatar shubham1172 avatar tanvigour avatar tcnghia avatar vinayada1 avatar wcs1only avatar willdavsmith avatar yaron2 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  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  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

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

cli's Issues

Provide an option for non-root install.

running actions init tries to copy something into a privileged location (/usr/local/bin) that's fine, but you might want to:

a) print a more useful error message (e.g. 'sudo actions init') instead of just failing the write.

b) provide a command line option for saving to an alternate location so that people w/o root can still install.

dapr run: support detach option

Support detach option in actions run.
I ssh to my ubuntu machine (most developers just to ssh in a terminal to linux machine).
Currently cli runs the action and user process in non-detached mode, so to do anything else I need to start other terminal session. Supporting detach mode for linux users is a must have.

Granted users can run it as daemon with &, but we will have to tell users to run it as daemon. Supporting a detach option makes it very similar to docker option.

Bubble up docker errors in Actions CLI

When actions init fails due to a docker issue, it doesn't bubble the issue up:

C:\actions>actions init
Making the jump to hyperspace...
Placement Service installation skipped due to Docker run error
Success! Get ready to rumble

We should bubble up all potentially valuable errors for users to more easily debug

This should handle both the cases of Docker not installed and Docker not running on all platforms.

Improve CLI development document

The document includes how we build/test/debug

  • - How to build actions cli
  • - How to test actions cli
  • - How to debug actions cli

make build doesn't work

cc @youngbupark

Steps to reproduce:

  1. run make build

Problems:

  1. all OS's should be built. what happens is only the current ARCH is getting built.
  2. file has no exec permissions. you have to do chmod +x ./actions.
  3. even after 2, the file errors out when called:
./actions: line 1: syntax error near unexpected token `newline'
./actions: line 1: `!<arch>`

Standalone actions use the same gRPC port

When running multiple action-enabled apps locally (using the "run" CLI command), every subsequent app clobbers the same port (6051).

image

The actions still get stood up, but only the first one handles requests as expected:

image

Can not kill an actions run that has crashed.

I have an actions run where the node process appears to have crashed. I can't seem to use the actions CLI to stop it (since the process doesn't exist) but I also can't seem to run a new revision of the app.

Set up State Stores and Pub Sub on k8s

Allow users a more streamlined getting started experience using the cli, by having a setup command install Redis on a k8s cluster and set up the component yaml automatically on behalf of the user.

Bring CLI output to product standard

  • Add installation progress for actions init (including download progress)
  • Replace prototype output language to product quality language. E.g. "โœ… Success! Get ready to rumble"

Download actions binaries from GitHub Release directly

Justification:
Once actions repo goes public, it makes sense to download actions binaries from GH release not to maintain blob storage.

to get latest release:
https://developer.github.com/v3/repos/releases/#get-the-latest-release

to get the specific version release
https://developer.github.com/v3/repos/releases/#get-a-release-by-tag-name

Exit criteria:

  • cli can download actions binaries from actions gh release
  • cli has the feature flag to enable GH Release download
  • Remove upload task in actions ci

Download icon is janky

When I download in VS-Code Terminal (or in Open Source Windows Terminal) the pulsing download animation is pretty janky. I'd suggest switching to something less fancy (e.g. classic spinning lines) or something like that.

Archive cli linux/macos binaries with tar

In what area(s)?

/area test-and-release

Describe the feature

Archive cli linux/macos binaries by tar.gz in CI

Justification

Most linux distros don't include unzip by default

Docs update

Add the following to docs:

  • actions list
  • actions run
  • actions send
  • actions publish

Support runtime versioning and CLI versioning

  1. CLI shall support a new switch named --runtime-version, which points to the version number of the runtime to be downloaded/installed.
  2. We shall generate a special CLI build for preview kit that treats ---runtime-version as a mandatory flag.
  3. The version command of CLI should return both CLI version and runtime version.

Remove --app-id from publish command

Instead, we can list all the available Actions and pick any of them. If there are non running, should output a message saying "couldn't find any actions instance running".

actions init fails on Windows

On a Windows machine run "actions init"

C:\Users\mfussell\go\src\github.com\actions-org\cli>actions init
Making the jump to hyperspace...
Error extracting actions binary: zip: not a valid zip file

Need a new CLI verb to stop a running action

As of now, when we start an action and then close that console window, it continues to exist:

> actions list
  APP ID           ACTIONS PORT  APP PORT  COMMAND        AGE  CREATED
  pythonapp        3500          3000      python app.py  2d   2019-08-14 12:09.34

There is then no way to stop the running action, which presents an issue if we want to reuse the action port.

Feature request: Add a new "stop" or "delete" verb to the CLI take down an action

Need to have Troubleshooting Section for common issues and resolutions

Need to address common issues and resolutions:
For Example:

First Issue : On Windows, while building cli "mingw32-make.exe build"
if you see the below error
"
process_begin: CreateProcess(NULL, uname -m, ...) failed.
mingw32-make.exe: Makefile:25: pipe: No error
'head' is not recognized as an internal or external command,
operable program or batch file.
'head' is not recognized as an internal or external command,
operable program or batch file.
process_begin: CreateProcess(NULL, uname, ...) failed.
mingw32-make.exe: Makefile:37: pipe: Bad file descriptor
CGO_ENABLED=0 GOOS=windows GOARCH=amd64 go build -ldflags "-X main.version=edge -X main.apiVersion=1.0" -mod=vendor
-o ./dist/windows_amd64/release/dapr.exe;
'CGO_ENABLED' is not recognized as an internal or external command,
operable program or batch file.
mingw32-make.exe: *** [Makefile:81: dapr] Error 1"

Resolution Check if the Git bin path is existing in the Path variable.

You can run this command which will update the git and add the paths in the Path variable.

choco install git.install --params "/GitAndUnixToolsOnPath /NoGitLfs /SChannel /NoAutoCrlf"

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.