mirror of
https://github.com/daylinmorgan/viv.git
synced 2024-11-14 04:57:53 -06:00
style: update help description
This commit is contained in:
parent
135f2bf2e8
commit
fac4b38e13
1 changed files with 5 additions and 6 deletions
|
@ -50,7 +50,7 @@ from typing import (
|
||||||
from urllib.error import HTTPError
|
from urllib.error import HTTPError
|
||||||
from urllib.request import urlopen
|
from urllib.request import urlopen
|
||||||
|
|
||||||
__version__ = "23.5a5-19-g93fd53e-dev"
|
__version__ = "23.5a5-21-g135f2bf-dev"
|
||||||
|
|
||||||
|
|
||||||
class Spinner:
|
class Spinner:
|
||||||
|
@ -213,12 +213,12 @@ class Ansi:
|
||||||
return f"{getattr(self,style)}{txt}{getattr(self,'end')}"
|
return f"{getattr(self,style)}{txt}{getattr(self,'end')}"
|
||||||
|
|
||||||
def tagline(self) -> str:
|
def tagline(self) -> str:
|
||||||
"""generate the viv tagline!"""
|
"""generate the viv tagline"""
|
||||||
|
|
||||||
return " ".join(
|
return " ".join(
|
||||||
(
|
(
|
||||||
self.style(f, "magenta") + self.style(rest, "cyan")
|
self.style(f, "magenta") + self.style(rest, "cyan")
|
||||||
for f, rest in (("v", "iv"), ("i", "sn't"), ("v", "env!"))
|
for f, rest in (("v", "iv"), ("i", "sn't"), ("v", "env"))
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -289,9 +289,8 @@ class Template:
|
||||||
return f"""
|
return f"""
|
||||||
|
|
||||||
{a.tagline()}
|
{a.tagline()}
|
||||||
to create/activate a vivenv:
|
command line: `{a.bold}{name} --help{a.end}`
|
||||||
- from command line: `{a.bold}{name} --help{a.end}`
|
python api: {a.style('__import__("viv").use("typer", "rich-click")','bold')}
|
||||||
- within python script: {a.style('__import__("viv").use("typer", "rich-click")','bold')}
|
|
||||||
"""
|
"""
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
|
|
Loading…
Reference in a new issue