Skip to content

Commit

Permalink
docs: update docs about "--show-drafts" option of "gas log" command
Browse files Browse the repository at this point in the history
PR Closed: #1161
  • Loading branch information
Lee-000 authored and linjiX committed Dec 15, 2021
1 parent 66c5ab8 commit 679b70b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
6 changes: 6 additions & 0 deletions docs/source/tensorbay_cli/cli_commands.rst
Original file line number Diff line number Diff line change
Expand Up @@ -338,6 +338,12 @@ Show graphical commit logs.

$ gas log --graph tb:<dataset_name>

Show commit and open draft logs.

.. code:: html

$ gas log --show-drafts tb:<dataset_name>


*************
gas branch
Expand Down
3 changes: 2 additions & 1 deletion tensorbay/cli/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -372,6 +372,7 @@ def tag(obj: ContextInfo, tbrn: str, name: str, is_delete: bool, sort: str) -> N
"",
"# Show text-based graphical commit logs.",
"$ gas log --graph tb:<dataset_name>[@<revision>]",
"",
"# Show commit and open draft logs.",
"$ gas log --show-drafts tb:<dataset_name>[@<revision>]",
"",
Expand All @@ -384,7 +385,7 @@ def tag(obj: ContextInfo, tbrn: str, name: str, is_delete: bool, sort: str) -> N
@click.option("--oneline", is_flag=True, help="Limit commit message to oneline")
@click.option("--all", "is_all", is_flag=True, help="Show all the commits of all branches")
@click.option("--graph", is_flag=True, help="Show text-based graphical commits history")
@click.option("--show-drafts", is_flag=True, help="Show open drafts")
@click.option("--show-drafts", is_flag=True, help="Show open drafts along with the commits")
@click.pass_obj
def log( # pylint: disable=too-many-arguments
obj: ContextInfo,
Expand Down

0 comments on commit 679b70b

Please sign in to comment.