Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
G
GitLab API Experiments
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Karl Fogel
GitLab API Experiments
Commits
565521e7
Commit
565521e7
authored
1 month ago
by
Karl Fogel
Browse files
Options
Downloads
Patches
Plain Diff
Update documentation
parent
14241bbc
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
gl-sak
+9
-4
9 additions, 4 deletions
gl-sak
with
9 additions
and
4 deletions
gl-sak
+
9
−
4
View file @
565521e7
...
...
@@ -3,7 +3,8 @@
"""
gl-sak: GitLab Swiss Army Knife.
A general-purpose GitLab tool for batch access to and manipulation of
entities (issues, labels, milestones, etc) in a GitLab project.
entities -- such as issues, labels, milestones, etc -- in a GitLab
project. Right now all it does is emit issues as JSON, though.
Usage
...
...
@@ -11,7 +12,11 @@ Usage
E.g.,
$ ./gl-sak --authn-token-file=./seekrit --gitlab=https://code.librehq.com --project foo/bar/myproj get-issues
[... JSON output ...]
$ ./gl-sak --authn-token-file=./seekrit --gitlab=https://code.librehq.com --project foo/bar/myproj get-issue 6
[... JSON output ...]
Run with
'
--help
'
to see subcommands and their arguments.
...
...
@@ -36,7 +41,6 @@ leak via 'ps' listings, shell history, etc. Only you can decide
whether using
'
--authn-token
'
is a reasonable choice given the
security properties of your runtime environment; if you are in any
doubt, choose
'
--authn-token-file
'
instead.
"""
import
argparse
...
...
@@ -167,8 +171,9 @@ def main():
private_token
=
args
.
authn_token
)
gl
.
auth
()
## WARNING: Turning on debugging can cause credentials and other
## sensitive data to be printed on the console.
## Note: if you turn debugging on, it can cause credentials and
## other sensitive data to be printed to the console.
#
# gl.enable_debug()
# Instantiate specified project, if any.
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment