Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
auto_git_info
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
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
Maxence Ferrari
auto_git_info
Commits
32b72639
Commit
32b72639
authored
1 year ago
by
ferrari
Browse files
Options
Downloads
Patches
Plain Diff
update README
parent
3a0f4058
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
README.md
+17
-0
17 additions, 0 deletions
README.md
with
17 additions
and
0 deletions
README.md
+
17
−
0
View file @
32b72639
...
@@ -15,6 +15,8 @@ To uninstall, just type `pip uninstall auto_git_info`
...
@@ -15,6 +15,8 @@ To uninstall, just type `pip uninstall auto_git_info`
Basic usage
Basic usage
-----
-----
##### Python module
```
python
```
python
from
auto_git_info
import
log_info
from
auto_git_info
import
log_info
import
argparse
import
argparse
...
@@ -38,6 +40,21 @@ The json file created will be:
...
@@ -38,6 +40,21 @@ The json file created will be:
"time"
:
"2023-06-23T18:04:30.894271"
}
"time"
:
"2023-06-23T18:04:30.894271"
}
```
```
##### Command line
Just launch the auto_git_info module followed by your python script and its arguments
as usual.
```
python -m auto_git_info your_script.py args1 ... -optn argsn
```
or if you want to change the default path:
```
python -m auto_git_info log_info=path.json your_script.py args1 ... -optn argsn
```
*Note that using this method will add `parsed_arguments=False` to the json*
Advance usage
Advance usage
-------------
-------------
...
...
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