mirror of
https://github.com/daylinmorgan/viv.git
synced 2024-11-10 03:13:14 -06:00
Compare commits
No commits in common. "0069a937b01426f30ce024b587eb92bec18e87cd" and "24d77a198c03fa6a06758576f6be7ba7d8cb992f" have entirely different histories.
0069a937b0
...
24d77a198c
5 changed files with 6 additions and 21 deletions
|
@ -1,6 +1,3 @@
|
|||
USAGE={a.bold}{a.cyan} viv isn't venv{a.end}\n\n\ttasks:\n
|
||||
PHONIFY=1
|
||||
HELP_SEP={a.b_blue}>>>{a.end}
|
||||
|
||||
-include .task.mk
|
||||
$(if $(filter help,$(MAKECMDGOALS)),$(if $(wildcard .task.mk),,.task.mk: ; curl -fsSL https://raw.githubusercontent.com/daylinmorgan/task.mk/v23.1.1/task.mk -o .task.mk))
|
||||
|
|
3
Makefile
3
Makefile
|
@ -31,4 +31,5 @@ generate-example-vivens: ##
|
|||
for f in $(EXAMPLES); \
|
||||
do python examples/$$f; done
|
||||
|
||||
-include .task.cfg.mk
|
||||
-include .task.cfg.mk .task.mk
|
||||
$(if $(filter help,$(MAKECMDGOALS)),$(if $(wildcard .task.mk),,.task.mk: ; curl -fsSL https://raw.githubusercontent.com/daylinmorgan/task.mk/v23.1.1/task.mk -o .task.mk))
|
||||
|
|
|
@ -17,7 +17,7 @@ homepage = "https://github.com/daylinmorgan/viv"
|
|||
repository = "https://github.com/daylinmorgan/viv"
|
||||
|
||||
[project.scripts]
|
||||
viv = "viv.viv:main"
|
||||
viv = "viv:main"
|
||||
|
||||
[tool.pdm]
|
||||
version = { source = "scm" }
|
||||
|
|
|
@ -1,4 +0,0 @@
|
|||
from .viv import main
|
||||
|
||||
if __name__ == "__main__":
|
||||
main()
|
|
@ -27,7 +27,7 @@ from dataclasses import dataclass
|
|||
from datetime import datetime
|
||||
from itertools import zip_longest
|
||||
from pathlib import Path
|
||||
from textwrap import dedent, wrap
|
||||
from textwrap import wrap
|
||||
from typing import Dict, List, Tuple
|
||||
|
||||
__version__ = "22.12a3"
|
||||
|
@ -733,12 +733,7 @@ class Viv:
|
|||
return matches[0]
|
||||
|
||||
def remove(self, args):
|
||||
"""\
|
||||
remove a vivenv
|
||||
|
||||
To remove all viv venvs:
|
||||
`viv rm $(viv l -q)`
|
||||
"""
|
||||
"""remove a vivenv"""
|
||||
|
||||
for name in args.vivenv:
|
||||
vivenv = self._match_vivenv(name)
|
||||
|
@ -818,11 +813,7 @@ class Viv:
|
|||
aliases = kwargs.pop("aliases", [name[0]])
|
||||
cmd = getattr(self, name)
|
||||
parser = subparsers.add_parser(
|
||||
name,
|
||||
help=cmd.__doc__.splitlines()[0],
|
||||
description=dedent(cmd.__doc__),
|
||||
aliases=aliases,
|
||||
**kwargs,
|
||||
name, help=cmd.__doc__, description=cmd.__doc__, aliases=aliases, **kwargs
|
||||
)
|
||||
parser.set_defaults(func=cmd)
|
||||
|
||||
|
|
Loading…
Reference in a new issue