microsoftgraph / msgraph-cli-archived

The Microsoft Graph CLI repository has moved. This repository is now an archive.
https://github.com/microsoftgraph/msgraph-cli
Other
44 stars 9 forks source link

Feat/integrate config #147

Closed jobala closed 3 years ago

jobala commented 3 years ago

Overview

Integrates config command module from Azure CLI

Demo

Group
    mg config : Manage Microsoft Graph CLI configuration.
        WARNING: This command group is experimental and under development. Reference and support
        levels: https://aka.ms/CLI_refstatus
Subgroups:
    param-persist : Manage parameter persistence.

Commands:
    get           : Get a configuration.
    set           : Set a configuration.
    unset         : Unset a configuration.

Notes

The config command module provides functionality for users to control the CLI's output color, telemetry collection, and logging to file.

Disable color with `core.no_color`.
    mg config set core.no_color=true

Hide warnings and only show errors with `core.only_show_errors`.
    mg config set core.only_show_errors=true

Turn on client-side telemetry.
    mg config set core.collect_telemetry=true

Turn on file logging and set its location.
    mg config set logging.enable_log_file=true
    mg config set logging.log_dir=~/az-logs

Testing Instructions

Fixes #140

Microsoft Reviewers: Open in CodeFlow