style: update help description

This commit is contained in:
Daylin Morgan 2023-06-08 10:41:29 -05:00
parent 135f2bf2e8
commit fac4b38e13
Signed by: daylin
GPG key ID: C1E52E7DD81DF79F

View file

@ -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