This commit is contained in:
Reid D. 'arrdem' McKenzie 2022-04-12 01:49:29 -06:00
parent 298699c1d4
commit e04324884f
4 changed files with 14 additions and 5 deletions

View file

@ -1,4 +1,4 @@
"""Cram's entry point."""
"""Cram's entry point."""
from itertools import chain
import logging
@ -8,7 +8,12 @@ import pickle
import sys
from typing import List
from . import __version__, __author__, __license__, __copyright__
from . import (
__author__,
__copyright__,
__license__,
__version__,
)
from .v0 import PackageV0, ProfileV0
from .v1 import PackageV1, ProfileV1
@ -252,6 +257,13 @@ def do_state(confdir, state_file):
print(*e)
@cli.command("migrate-to-toml")
@click.argument("confdir", type=Path)
@click.argument("requirement", type=str)
def do_migrate(confdig, requirement):
"""Convert from the 0.0.0 config format to the 0.1.0 TOML format"""
if __name__ == "__main__" or 1:
logging.basicConfig(
level=logging.INFO,

View file

@ -1,6 +1,5 @@
#!/usr/bin/env python3
from abc import abstractmethod
from pathlib import Path
from shlex import quote as sh_quote
from typing import List, Optional

View file

@ -5,7 +5,6 @@ An ill-considered pseudo-format.
from pathlib import Path
import re
from typing import NamedTuple
from .common import Package, sh, stow

View file

@ -8,7 +8,6 @@ Based on well* defined TOML manifests, rather than many files.
from hashlib import sha256
from pathlib import Path
from typing import List, Optional, Union
from typing import NamedTuple
from .common import Package, sh, stow