Xabaril / Esquio

Esquio is a Feature Toggle Library for .NET Developers.
Apache License 2.0
429 stars 49 forks source link

Featuers/dotnetglobaltool #73

Closed unaizorrilla closed 4 years ago

unaizorrilla commented 5 years ago

Esquio.CliTool

This PR contains a new dotnet tool for Esquio UI. This tool enable manage products, features, toggles, and parameters from the command line using existing Esquio UI HTTP API.

λ dotnet esquio products
You must specify at a subcommand
Manage Esquio products using Esquio UI HTTP API

Usage: dotnet-esquio products [options] [command]

Options:
  -?|-h|--help  Show help information

Commands:
  add
  list
  remove

Run 'products [command] --help' for more information about a command.

The main motivation for this is enable Esquio options in pipelines executed from scripts, without task on Azure DevOps or Github actions etc

At this momment the CLI can do:

lfraile commented 5 years ago

As an idea, include the possibility to take the api key from a predefined environment value, to hide secrets in command line execution.

In the case of having the environment variable and command line argument, the command line argument wins.

unaizorrilla commented 5 years ago

Hi @lfraile

Already done on latest commit :-)

unaizorrilla commented 5 years ago

Added new commit with:

--no-prompt for non compensable actions

unaizorrilla commented 4 years ago

Added missing doc files