Commit Graph

18 Commits

Author SHA1 Message Date
tianya 72551c95af
output help information when dapr has no parameters (#1255)
Signed-off-by: tianya <tianyax@outlook.com>
2023-03-08 21:26:54 +05:30
Mukundan Sundararajan a7f06c3b1b
Fix runtime custom path installation logic (#1203)
* fix dapr path version, custom  installation path logic, e2e

Signed-off-by: Mukundan Sundararajan <65565396+mukundansundar@users.noreply.github.com>

* fix linter errors

Signed-off-by: Mukundan Sundararajan <65565396+mukundansundar@users.noreply.github.com>

* fix paths for windows

Signed-off-by: Mukundan Sundararajan <65565396+mukundansundar@users.noreply.github.com>

* rename daprPath to daprRuntimePath

Signed-off-by: Mukundan Sundararajan <65565396+mukundansundar@users.noreply.github.com>

---------

Signed-off-by: Mukundan Sundararajan <65565396+mukundansundar@users.noreply.github.com>
2023-02-05 21:57:23 -08:00
Pravin Pushkar 14c04f9a87
Dapr stop and list changes for dapr run -f (#1169)
* dapr stop -f impl

Signed-off-by: Pravin Pushkar <ppushkar@microsoft.com>

* add description

Signed-off-by: Pravin Pushkar <ppushkar@microsoft.com>

* fix tests

Signed-off-by: Pravin Pushkar <ppushkar@microsoft.com>

* fix windows failure

Signed-off-by: Pravin Pushkar <ppushkar@microsoft.com>

* Update cmd/stop.go

Co-authored-by: Mukundan Sundararajan <65565396+mukundansundar@users.noreply.github.com>
Signed-off-by: Pravin Pushkar <ppushkar@microsoft.com>

* review comments

Signed-off-by: Pravin Pushkar <ppushkar@microsoft.com>

* review comments

Signed-off-by: Pravin Pushkar <ppushkar@microsoft.com>

* change cmd description

Signed-off-by: Pravin Pushkar <ppushkar@microsoft.com>

* stop refactoring

Signed-off-by: Pravin Pushkar <ppushkar@microsoft.com>

* trigger pr checks

Signed-off-by: Pravin Pushkar <ppushkar@microsoft.com>

Signed-off-by: Pravin Pushkar <ppushkar@microsoft.com>
Co-authored-by: Mukundan Sundararajan <65565396+mukundansundar@users.noreply.github.com>
2023-01-24 18:28:31 +05:30
mikeb26 53dff409b4
Support environments with broken $HOME (#1057)
* Support environments with broken $HOME

Currently in standalone mode dapr cli will install the dapr runtime
binaries into $HOME/.dapr. However, in some environments $HOME is
readonly or os.UserHomeDir() can fail (e.g. AWS Lambda). To support
dapr in these environments this change does 2 things:

1. Allows the user to set DAPR_PATH environment variable to indicate
the location of the dapr runtime binaries.

2. Allows the user to optionally specify --dapr-path cli flag to
indicate the location of the dapr runtime binaries. When both
DAPR_PATH environment variable and --dapr-path CLI flag are present,
the cli flag has higher precedence.

When neither DAPR_PATH nor the --dapr-path CLI flag are present, we
fallback to existing behavior of defaulting to $HOME/.dapr.

Signed-off-by: Mike Brown <github@torvosoft.com>

* Address comments

Signed-off-by: Shubham Sharma <shubhash@microsoft.com>

* Address comments

Signed-off-by: Shubham Sharma <shubhash@microsoft.com>

* Address comments

Signed-off-by: Shubham Sharma <shubhash@microsoft.com>

* Fix unit test

Signed-off-by: Shubham Sharma <shubhash@microsoft.com>

* Fix e2e test

Signed-off-by: Shubham Sharma <shubhash@microsoft.com>

* Fix lint

Signed-off-by: Shubham Sharma <shubhash@microsoft.com>

Signed-off-by: Mike Brown <github@torvosoft.com>
Signed-off-by: Shubham Sharma <shubhash@microsoft.com>
Co-authored-by: Shubham Sharma <shubhash@microsoft.com>
2023-01-03 15:40:06 +05:30
Mukundan Sundararajan f58c920c6c
Add newline char at end of dapr version output (#1014)
* add newline character at end of output of dapr version cmd

Signed-off-by: Mukundan Sundararajan <65565396+mukundansundar@users.noreply.github.com>

* add newline char to dapr --version flag

Signed-off-by: Mukundan Sundararajan <65565396+mukundansundar@users.noreply.github.com>

* refactor version template string

Signed-off-by: Mukundan Sundararajan <65565396+mukundansundar@users.noreply.github.com>
2022-06-28 08:51:16 -07:00
FanBin 3d01ffd8d3
Format output of dapr --version as JSON. (#878)
* Format output of dapr --version as JSON.

Signed-off-by: fanfanbj <fanfanbj@outlook.com>

* Format output of dapr --version as JSON.

Signed-off-by: fanfanbj <fanfanbj@outlook.com>

Co-authored-by: Yaron Schneider <schneider.yaron@live.com>
2022-06-01 09:11:42 -07:00
li1234yun 98f678728a
Fix cli dapr display style (#882)
Signed-off-by: li1234yun <li1234yun@163.com>

Co-authored-by: Mukundan Sundararajan <musundar@microsoft.com>
2022-01-27 12:35:52 +05:30
Dmitry Shmulevich 0f9d0d3a89
replaced license headers (#855)
Signed-off-by: Dmitry Shmulevich <dmitry.shmulevich@gmail.com>
2021-12-10 08:09:09 +05:30
Long Dai 4ccf10f9e4
ci: standard linter config (#793)
Signed-off-by: Long <long0dai@foxmail.com>
Signed-off-by: Long <long.dai@intel.com>
2021-11-01 19:01:51 +05:30
Phil Kedy 47d369d490 Adding JSON logging format and simplifying/centralizing spinner output 2021-03-16 16:38:38 -04:00
Yaron Schneider 3ee9e53338
add renewed headers (#588) 2021-02-10 08:37:08 -08:00
Artur Souza 6a303e71f7
Rewording of help messages. (#501)
* Delete reference docs, since docs website has those now.

* Rewording of help messages.
2020-10-29 16:08:21 -07:00
Mukundan Sundararajan 24ca35d78b
Upgrade to linter v1.31.0 (#447)
* Upgrade to linter v1.30.0

* Remove --fix from lint

* Fix linter issues

* use golang-ci lint action

* Fix linter version

* add linter patch version

* remove linter patch version
2020-10-07 17:24:12 -07:00
Aman Bhardwaj 2a4123efaf
Change init and uninstall behavior for self hosted mode (#413)
* remove install-path option for dapr init copy bianries under $HOME/.dapr/bin
2020-07-22 14:47:57 -07:00
Greg Ingram e759a815ed Capitalized Dapr and uppercase CLI (#215)
* Capitalized Dapr

* Fixed wording

* Uppercase CLI

* Missed capitalized Dapr

* Fix uninstall description
2019-11-25 09:37:45 -08:00
Phillip Hoff 65555f5cb8 Allow setting flags via environment variables (#210)
* Use viper to pull flags from environment variable.

* Allow Docker network be specified via environment variable.

* Sketch Dapr init/run CLI command reference.

* Sketch remainder of Dapr CLI command docs.

* Add note re: environment variables.
2019-11-20 10:29:53 -08:00
Aman Bhardwaj 6debcf2610 Adding license header and updating to MIT license. 2019-10-08 16:36:31 -07:00
Yaron Schneider 36973dca2f
name change (#109) 2019-10-02 16:40:04 -07:00