Source code for pyiron_base.cli.cp

# coding: utf-8
# Copyright (c) Max-Planck-Institut für Eisenforschung GmbH - Computational Materials Design (CM) Department
# Distributed under the terms of "New BSD License", see the LICENSE file.
"""
Copy a pyiron project to a new location.
"""

from argparse import ArgumentParser, Namespace

from pyiron_base.project.generic import Project


[docs] def register(parser: ArgumentParser) -> None: parser.add_argument("src", help="source project") parser.add_argument("dst", help="destination project")
[docs] def main(args: Namespace) -> None: src = Project(args.src) dst = Project(args.dst) src.copy_to(dst)