Skip to content

Latest commit

 

History

History
61 lines (39 loc) · 1.33 KB

ConsoleApp.md

File metadata and controls

61 lines (39 loc) · 1.33 KB

Console Application

Console interface of this software uses CommandLineParser.

Using command line parameters differs a little bit depending on where you run this software.

Examples in this section assume that commands are run from ConsoleInterface-folder.

For up to date help

dotnet run -- help 

Configurating Console Application

Configurations are read from appsettings.json and appsettings.Development.json.

  1. Create appsettings.Development.json using appsettings.json as base.
  2. Replace necessary configuration values.

TableStorage.ConnectionString can be retrieved from Azure Portal or from the output of Prepare-Environment.ps1. See Function App instructions for more.

SlackClient.BearerToken can be retrieved from Slack Application

Usage

For up to date help

dotnet run -- help 

Fetching answers

Fetching questionnaire ID:s

dotnet run -- questionnaires

Fetching answers for all questionnaires

dotnet run -- answers

Fetching answers for single questionnaire

dotnet run -- answers -q e746a0db-6984-4fc4-8d6d-b5fad5baaa90

Writing answers to CSV-file

dotnet run -- answers -q e746a0db-6984-4fc4-8d6d-b5fad5baaa90 -o test.csv