Skip to content

Commit 0aec63f

Browse files
committed
helpers: fix missing underscore fields
1 parent 09ba21b commit 0aec63f

2 files changed

Lines changed: 34 additions & 1 deletion

File tree

README.md

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,38 @@ Fetching resources with using `--output, -o` formatter flag.
112112
]
113113
```
114114

115+
```bash
116+
>> gitlabctl get groups -o yaml
117+
- avatar_url: ""
118+
description: Updated by go test by id
119+
full_name: Group1
120+
full_path: Group1
121+
id: 13
122+
lfs_enabled: false
123+
name: Group1
124+
parent_id: 0
125+
path: Group1
126+
projects: null
127+
request_access_enabled: false
128+
statistics: null
129+
visibility: private
130+
web_url: http://localhost:10080/groups/Group1
131+
- avatar_url: ""
132+
description: ""
133+
full_name: Group2
134+
full_path: Group2
135+
id: 14
136+
lfs_enabled: true
137+
name: Group2
138+
parent_id: 0
139+
path: Group2
140+
projects: null
141+
request_access_enabled: false
142+
statistics: null
143+
visibility: private
144+
web_url: http://localhost:10080/groups/Group2
145+
```
146+
115147
Creating resources.
116148

117149
```bash

cmd/helpers.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,8 @@ import (
3131
"github.com/olekukonko/tablewriter"
3232
"github.com/spf13/cobra"
3333
gitlab "github.com/xanzy/go-gitlab"
34-
yaml "gopkg.in/yaml.v2"
34+
35+
"github.com/ghodss/yaml"
3536
)
3637

3738
const (

0 commit comments

Comments
 (0)