mirror of
https://github.com/ihabunek/toot.git
synced 2025-06-30 22:18:36 -04:00
Explain post visibility
This commit is contained in:
parent
0020209075
commit
125626d884
@ -9,6 +9,8 @@ from typing import BinaryIO, Optional, Tuple
|
|||||||
from toot import api, config
|
from toot import api, config
|
||||||
from toot.cli import AccountParamType, cli, json_option, pass_context, Context
|
from toot.cli import AccountParamType, cli, json_option, pass_context, Context
|
||||||
from toot.cli import DURATION_EXAMPLES, VISIBILITY_CHOICES
|
from toot.cli import DURATION_EXAMPLES, VISIBILITY_CHOICES
|
||||||
|
from toot.tui.constants import VISIBILITY_OPTIONS # move to top-level ?
|
||||||
|
|
||||||
from toot.cli.validators import validate_duration, validate_language
|
from toot.cli.validators import validate_duration, validate_language
|
||||||
from toot.entities import MediaAttachment, from_dict
|
from toot.entities import MediaAttachment, from_dict
|
||||||
from toot.utils import EOF_KEY, delete_tmp_status_file, editor_input, multiline_input
|
from toot.utils import EOF_KEY, delete_tmp_status_file, editor_input, multiline_input
|
||||||
@ -38,7 +40,10 @@ from toot.utils.datetime import parse_datetime
|
|||||||
)
|
)
|
||||||
@click.option(
|
@click.option(
|
||||||
"--visibility", "-v",
|
"--visibility", "-v",
|
||||||
help="Post visibility",
|
help="Post visibility: " + "; "
|
||||||
|
.join("{} = {}".format(visibility, description)
|
||||||
|
for visibility, caption, description in VISIBILITY_OPTIONS),
|
||||||
|
default=VISIBILITY_CHOICES[0],
|
||||||
type=click.Choice(VISIBILITY_CHOICES),
|
type=click.Choice(VISIBILITY_CHOICES),
|
||||||
)
|
)
|
||||||
@click.option(
|
@click.option(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user