Azure / Azure/azure-cli

az repos create and delete operations arguments are inconsistent

Open
#27,818 3 comments 0 reactions 0 assignees View on GitHub
act-platform-engineering-squad Auto-Assign Auto-Resolve bug customer-reported DevOps Service Attention
Dominant language
Python
Stars
4.6k
Forks
3.5k
Avg merge
3d 2h
Merged PRs (30d)
60

Description

### Describe the bug

For creation:

```bash
az repos create --name
[--detect {false, true}]
[--open]
[--org]
[--project]
```

For deletion:

```bash
az repos delete --id
[--detect {false, true}]
[--org]
[--project]
[--yes]
```

the delete operation should also expect a `--name` instead of an `--id`

### Environment Summary

```bash
$ az version
```
```json
{
"azure-cli": "2.46.0",
"azure-cli-core": "2.46.0",
"azure-cli-telemetry": "1.0.8",
"extensions": {
"alertsmanagement": "0.2.2",
"azure-devops": "0.26.0"
}
}
```

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.