Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@ For [installation options see below](#installation), for usage instructions [see

## Installation

For Windows, Mac OS(10.12+) or Linux, you can download a binary from the [releases page][].
`azdo` is availeable for Windows, Mac OS(10.12+), Linux or FreeBSD, as downloadable binary from the [releases page][].
3 changes: 1 addition & 2 deletions cmd/gen-docs/gen-docs.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import (
"fmt"
"os"
"path/filepath"
"strings"

"github.com/spf13/pflag"
"github.com/tmeckel/azdo-cli/internal/cmd/root"
Expand Down Expand Up @@ -72,5 +71,5 @@ func filePrepender(filename string) string {
}

func linkHandler(name string) string {
return fmt.Sprintf("./%s", strings.TrimSuffix(name, ".md"))
return fmt.Sprintf("./%s", name)
}
8 changes: 4 additions & 4 deletions docs/azdo.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
## azdo
Work seamlessly with Azure DevOps from the command line.
### Core commands
* [azdo auth](./azdo_auth)
* [azdo project](./azdo_project)
* [azdo repo](./azdo_repo)
* [azdo auth](./azdo_auth.md)
* [azdo project](./azdo_project.md)
* [azdo repo](./azdo_repo.md)

### Additional commands
* [azdo config](./azdo_config)
* [azdo config](./azdo_config.md)

### Options

Expand Down
10 changes: 5 additions & 5 deletions docs/azdo_auth.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
## azdo auth
Authenticate azdo and git with Azure DevOps
### Available commands
* [azdo auth login](./azdo_auth_login)
* [azdo auth logout](./azdo_auth_logout)
* [azdo auth setup-git](./azdo_auth_setup-git)
* [azdo auth status](./azdo_auth_status)
* [azdo auth login](./azdo_auth_login.md)
* [azdo auth logout](./azdo_auth_logout.md)
* [azdo auth setup-git](./azdo_auth_setup-git.md)
* [azdo auth status](./azdo_auth_status.md)

### See also

* [azdo](./azdo)
* [azdo](./azdo.md)
2 changes: 1 addition & 1 deletion docs/azdo_auth_login.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,4 +51,4 @@ $ azdo auth login --organizationUrl https://dev.azure.com/myorg

### See also

* [azdo auth](./azdo_auth)
* [azdo auth](./azdo_auth.md)
2 changes: 1 addition & 1 deletion docs/azdo_auth_logout.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,4 @@ $ azdo auth logout --hostname enterprise.internal

### See also

* [azdo auth](./azdo_auth)
* [azdo auth](./azdo_auth.md)
2 changes: 1 addition & 1 deletion docs/azdo_auth_setup-git.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,4 @@ $ azdo auth setup-git --organization enterprise.internal

### See also

* [azdo auth](./azdo_auth)
* [azdo auth](./azdo_auth.md)
2 changes: 1 addition & 1 deletion docs/azdo_auth_status.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,4 @@ report any issues.

### See also

* [azdo auth](./azdo_auth)
* [azdo auth](./azdo_auth.md)
8 changes: 4 additions & 4 deletions docs/azdo_config.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@ Current respected settings:
- default_organization: the default Azure DevOps organization to use, if no organization is specified

### Available commands
* [azdo config get](./azdo_config_get)
* [azdo config list](./azdo_config_list)
* [azdo config set](./azdo_config_set)
* [azdo config get](./azdo_config_get.md)
* [azdo config list](./azdo_config_list.md)
* [azdo config set](./azdo_config_set.md)

### See also

* [azdo](./azdo)
* [azdo](./azdo.md)
9 changes: 4 additions & 5 deletions docs/azdo_config_get.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,10 @@ azdo config get <key> [flags]
### Examples

```bash

$ azdo config get git_protocol
https
```
$ azdo config get git_protocol
https
```

### See also

* [azdo config](./azdo_config)
* [azdo config](./azdo_config.md)
2 changes: 1 addition & 1 deletion docs/azdo_config_list.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@ azdo config list [flags]

### See also

* [azdo config](./azdo_config)
* [azdo config](./azdo_config.md)
2 changes: 1 addition & 1 deletion docs/azdo_config_set.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,4 @@ $ azdo config set prompt disabled

### See also

* [azdo config](./azdo_config)
* [azdo config](./azdo_config.md)
2 changes: 1 addition & 1 deletion docs/azdo_help.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ Help provides help for any command in the application.
Simply type azdo help [path to command] for full details.
### See also

* [azdo](./azdo)
* [azdo](./azdo.md)
2 changes: 1 addition & 1 deletion docs/azdo_help_environment.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,4 +42,4 @@ AZDO_PROMPT_DISABLED: set to any value to disable interactive prompting in the t

### See also

* [azdo](./azdo)
* [azdo](./azdo.md)
2 changes: 1 addition & 1 deletion docs/azdo_help_exit-codes.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,4 @@ control some behavior.

### See also

* [azdo](./azdo)
* [azdo](./azdo.md)
2 changes: 1 addition & 1 deletion docs/azdo_help_mintty.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,4 @@ There are a few workarounds to make azdo work with MinTTY:

### See also

* [azdo](./azdo)
* [azdo](./azdo.md)
2 changes: 1 addition & 1 deletion docs/azdo_help_reference.md
Original file line number Diff line number Diff line change
Expand Up @@ -113,4 +113,4 @@ List repositories of a project inside an organization

### See also

* [azdo](./azdo)
* [azdo](./azdo.md)
4 changes: 2 additions & 2 deletions docs/azdo_project.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
## azdo project
Work with Azure DevOps Projects.
### Available commands
* [azdo project list](./azdo_project_list)
* [azdo project list](./azdo_project_list.md)

### Examples

Expand All @@ -13,4 +13,4 @@ $ azdo project delete -o <organization> <project>

### See also

* [azdo](./azdo)
* [azdo](./azdo.md)
2 changes: 1 addition & 1 deletion docs/azdo_project_list.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,4 +35,4 @@ azdo project list --organization myorg --closed

### See also

* [azdo project](./azdo_project)
* [azdo project](./azdo_project.md)
6 changes: 3 additions & 3 deletions docs/azdo_repo.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
## azdo repo
Work with Azure DevOps Git repositories.
### Available commands
* [azdo repo clone](./azdo_repo_clone)
* [azdo repo list](./azdo_repo_list)
* [azdo repo clone](./azdo_repo_clone.md)
* [azdo repo list](./azdo_repo_list.md)

### Examples

Expand All @@ -15,4 +15,4 @@ $ azdo repo view --web

### See also

* [azdo](./azdo)
* [azdo](./azdo.md)
2 changes: 1 addition & 1 deletion docs/azdo_repo_clone.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,4 @@ them after "--".

### See also

* [azdo repo](./azdo_repo)
* [azdo repo](./azdo_repo.md)
2 changes: 1 addition & 1 deletion docs/azdo_repo_list.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,4 +39,4 @@ azdo repo list myproject --organization myorg

### See also

* [azdo repo](./azdo_repo)
* [azdo repo](./azdo_repo.md)
5 changes: 3 additions & 2 deletions internal/cmd/config/get/get.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ package get
import (
"fmt"

"github.com/MakeNowJust/heredoc"
"github.com/spf13/cobra"
"github.com/tmeckel/azdo-cli/internal/cmd/util"
"github.com/tmeckel/azdo-cli/internal/config"
Expand All @@ -19,10 +20,10 @@ func NewCmdConfigGet(ctx util.CmdContext) *cobra.Command {
cmd := &cobra.Command{
Use: "get <key>",
Short: "Print the value of a given configuration key",
Example: `
Example: heredoc.Doc(`
$ azdo config get git_protocol
https
`,
`),
Args: cobra.ExactArgs(1),
RunE: func(cmd *cobra.Command, args []string) error {
opts.Key = args[0]
Expand Down