Skip to content

Commit 10e1573

Browse files
Sazon, John Bryan Jbzon
authored andcommitted
Update documentations
1 parent 9951c61 commit 10e1573

File tree

6 files changed

+97
-30
lines changed

6 files changed

+97
-30
lines changed

README.md

Lines changed: 38 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,17 @@
77

88
Be a rockstar and efficiently manage your team's gitlab.org or [self-hosted Gitlab](https://about.gitlab.com/installation/) projects, groups, users and other resources.
99

10-
Tested with [__Gitlab 11.0.3__](https://about.gitlab.com/2018/07/05/gitlab-11-0-3-released/)
10+
Tested with [__Gitlab 11.1__](https://about.gitlab.com/2018/07/22/gitlab-11-1-released/).
1111

1212
## Getting Started
1313

14-
Please see [Commands Manual](https://devopsctl.github.io/gitlabctl/) for a nice documentation of this project.
14+
Complete the [installation](#installation) guide below and then follow the [quickstart](#quickstart) guide.
1515

16-
## Installing
16+
If you are hooked, please visit the awesome [Project Github site](https://devopsctl.github.io/gitlabctl/) to read the full manual of each command.
17+
18+
If you just want to quickly check what are the available commands, go to [Gitlab Commands Available](#gitlab-commands-available) in this page.
19+
20+
## Installation
1721

1822
Get the download link of your preferred platform binary from [RELEASES](https://github.com/devopsctl/gitlabctl/releases).
1923

@@ -49,7 +53,7 @@ gitlabctl completion -h
4953
Using `gitlabctl login` to fetch personal access token
5054

5155
```bash
52-
>> gitlabctl login
56+
gitlabctl login
5357
>> Enter gitlab host url: http://localhost:10080
5458
>> Enter gitlab username: root
5559
>> Enter gitlab password: *****
@@ -62,14 +66,23 @@ Using environment variables. See `gitlabctl -h`
6266

6367
Use __-h__ flag when possible.
6468

65-
`gitlabctl [command] -h` or `gitlabctl [command] [subcommand] -h`
69+
```bash
70+
gitlabctl [command] -h
71+
```
72+
73+
or
74+
75+
```bash
76+
gitlabctl [command] [subcommand] -h
77+
```
6678

6779
### Usage Examples
6880

6981
Fetching resources with using `--output, -o` formatter flag.
7082

7183
```bash
72-
>> gitlabctl get groups
84+
gitlabctl get groups
85+
7386
+----+------------------+------------------------------------------------+-----------+
7487
| ID | PATH | URL | PARENT ID |
7588
+----+------------------+------------------------------------------------+-----------+
@@ -82,8 +95,11 @@ Fetching resources with using `--output, -o` formatter flag.
8295
+----+------------------+------------------------------------------------+-----------+
8396
```
8497

98+
View command outout in __json__.
99+
85100
```bash
86-
>> gitlabctl get groups -o json
101+
gitlabctl get groups -o json
102+
87103
[
88104
{
89105
"id": 13,
@@ -120,8 +136,11 @@ Fetching resources with using `--output, -o` formatter flag.
120136
]
121137
```
122138

139+
View the command output in __yaml__.
140+
123141
```bash
124-
>> gitlabctl get groups -o yaml
142+
gitlabctl get groups -o yaml
143+
125144
- avatar_url: ""
126145
description: Updated by go test by id
127146
full_name: Group1
@@ -152,23 +171,19 @@ Fetching resources with using `--output, -o` formatter flag.
152171
web_url: http://localhost:10080/groups/Group2
153172
```
154173

155-
Creating resources.
174+
Create gitlab resources.
156175

157176
```bash
158177
# create a group
159-
>> gitlabctl new group devopsctl
178+
gitlabctl new group devopsctl
160179

161180
# create a project under devopsctl group
162-
>> gitlabctl new project gitlab-cli --namespace=devopsctl
181+
gitlabctl new project gitlab-cli --namespace=devopsctl
163182

164183
# create a new user with username john
165-
>> gitlabctl new user john --name="John Smith" --password="john123456" [email protected] --reset-password
184+
gitlabctl new user john --name="John Smith" --password="john123456" [email protected] --reset-password
166185
```
167186

168-
## Contributing
169-
170-
Contributors are welcomed with love! Please read [CONTRIBUTING.md](./CONTRIBUTING.md) for the process for submitting pull requests to us.
171-
172187
## Gitlab Commands Available
173188
### Authentication
174189

@@ -207,14 +222,14 @@ Contributors are welcomed with love! Please read [CONTRIBUTING.md](./CONTRIBUTIN
207222
* [x] `edit branch [branch name] [--project] [--protect] [flags]`
208223
* [x] `edit branch [branch name] [--project] [--unprotect] [flags]`
209224

210-
### Project/Repository Tags
225+
### Project/Repository Tags and Releases
211226

212227
* [x] `get tags [project id or project path] [flags]`
213228
* [x] `describe tag [tag name] [--project] [flags]`
214229
* [x] `new tag [tag name] [--project] [flags]`
215230
* [x] `delete tag [tag name] [--project]`
216-
* [x] `new release [description] [--project] [flags]`
217-
* [ ] `edit release [description] [--project] [flags]`
231+
* [x] `new release [tag name] [--project] [flags]`
232+
* [x] `edit release [tag name] [--project] [flags]`
218233

219234
### Project Hooks
220235

@@ -251,3 +266,7 @@ Contributors are welcomed with love! Please read [CONTRIBUTING.md](./CONTRIBUTIN
251266
* [x] `edit member [username] --from-project [flags]`
252267
* [x] `delete all-members --from-project`
253268

269+
## Contributing
270+
271+
Contributors are welcomed with love! Please read [CONTRIBUTING.md](./CONTRIBUTING.md) for the process for submitting pull requests to us.
272+

docs/gitlabctl_edit.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,5 +27,6 @@ Update or patch a Gitlab resource
2727
* [gitlabctl edit member](gitlabctl_edit_member.md) - Edit a member by specifying the member name as the first argument
2828
* [gitlabctl edit project](gitlabctl_edit_project.md) - Edit a project by specifying the project id or path and using flags for fields to modify
2929
* [gitlabctl edit project-hook](gitlabctl_edit_project-hook.md) - Edit a project hook by specifying the project id or path and using flags for fields to modify
30+
* [gitlabctl edit release](gitlabctl_edit_release.md) - Update the release note of a project's release
3031
* [gitlabctl edit user](gitlabctl_edit_user.md) - Modify a user by specifying the id or username and using flags for fields to modify
3132

docs/gitlabctl_edit_release.md

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
## gitlabctl edit release
2+
3+
Update the release note of a project's release
4+
5+
### Synopsis
6+
7+
Update the release note of a project's release
8+
9+
```
10+
gitlabctl edit release [flags]
11+
```
12+
13+
### Examples
14+
15+
```
16+
gitlabctl edit release v1.0 --project=groupx/myapp --description="Updated Release Note"
17+
```
18+
19+
### Options
20+
21+
```
22+
-d, --description string Release note
23+
-h, --help help for release
24+
-p, --project string The name or ID of the project
25+
```
26+
27+
### Options inherited from parent commands
28+
29+
```
30+
--config string config file (default is $HOME/.gitlabctl.yaml)
31+
-o, --out string Print the command output to the desired format. (json, yaml, simple) (default "simple")
32+
```
33+
34+
### SEE ALSO
35+
36+
* [gitlabctl edit](gitlabctl_edit.md) - Update or patch a Gitlab resource
37+

docs/gitlabctl_new.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ Create a Gitlab resource
2727
* [gitlabctl new member](gitlabctl_new_member.md) - Create a new member by specifying the member name as the first argument
2828
* [gitlabctl new project](gitlabctl_new_project.md) - Create a new project by specifying the project name as the first argument
2929
* [gitlabctl new project-hook](gitlabctl_new_project-hook.md) - Create a new project hook by specifying the project id or project path as the first argument
30-
* [gitlabctl new release](gitlabctl_new_release.md) - Create a new release for a specified project
30+
* [gitlabctl new release](gitlabctl_new_release.md) - Create a new release for the specified project's tag
3131
* [gitlabctl new ssh-key](gitlabctl_new_ssh-key.md) - Upload or create ssh key for a gitlab user
3232
* [gitlabctl new tag](gitlabctl_new_tag.md) - Create a new tag for a specified project
3333
* [gitlabctl new user](gitlabctl_new_user.md) - Create a new user by specifying the username as the first argument

docs/gitlabctl_new_release.md

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
## gitlabctl new release
22

3-
Create a new release for a specified project
3+
Create a new release for the specified project's tag
44

55
### Synopsis
66

7-
Create a new release for a specified project
7+
Create a new release for the specified project's tag
88

99
```
1010
gitlabctl new release [flags]
@@ -13,16 +13,19 @@ gitlabctl new release [flags]
1313
### Examples
1414

1515
```
16-
# create release from v1.0 tag of project groupx/myapp
17-
gitlabctl new release sample --project=groupx/myapp --tag=v1.0
16+
# ensure to create the tag where the release will be created from
17+
gitlabctl new tag v1.0 --ref=master --project=groupx/myapp
18+
19+
# create the release
20+
gitlabctl new release v1.0 --project=groupx/myapp --description="Sample Release Note"
1821
```
1922

2023
### Options
2124

2225
```
23-
-h, --help help for release
24-
-p, --project string The name or ID of the project
25-
-t, --tag string The name of a tag
26+
-d, --description string The release note or description
27+
-h, --help help for release
28+
-p, --project string The name or ID of the project
2629
```
2730

2831
### Options inherited from parent commands

docs/gitlabctl_new_tag.md

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,14 +15,21 @@ gitlabctl new tag [flags]
1515
```
1616
# create tag from master branch for project groupx/myapp
1717
gitlabctl new tag v2.0 --project=groupx/myapp --ref=master
18+
19+
# create a tag and create a release from it
20+
gitlabctl new tag v2.1 --project=groupx/myapp --ref=master --description="Released!"
21+
22+
# NOTE: You can also use 'gitlabctl new release' to create a release separately.
1823
```
1924

2025
### Options
2126

2227
```
23-
-h, --help help for tag
24-
-p, --project string The name or ID of the project
25-
-r, --ref string The branch name or commit SHA to create branch from
28+
-d, --description string Create a release from the git tag with the description as the release note
29+
-h, --help help for tag
30+
-m, --message string Creates annotated tag
31+
-p, --project string The name or ID of the project
32+
-r, --ref string The branch name or commit SHA to create branch from
2633
```
2734

2835
### Options inherited from parent commands

0 commit comments

Comments
 (0)