Azure / Azure/azure-devops-cli-extension

[Feature Request] Enable using '-' as a filename to read from stdin

Open
#1,044 0 comments 1 reaction 0 assignees View on GitHub
Feature
Dominant language
Python
Stars
682
Forks
278
Avg merge
3d 23h
Merged PRs (30d)
3

Description

**Is your feature request related to a problem? Please describe.**
We're running a script to create and manage policies in a gitops way, but we're having to write each config to a temporary file to be able to create/update these.

**Describe the solution you'd like**
Almost all commandline tools that read files support using the '-' character as a special filename to indicate that it should read from stdin. This feature would enable us to pipe the object to the az commandline directly.

**Additional context**
For example: $policy | Convertto-Json -Depth 10 -Compress | az repos policy create --org $org --project $proj --config -

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.