Skip to content

Commit

Permalink
Merge a83d923 into b901850
Browse files Browse the repository at this point in the history
  • Loading branch information
XzzX committed May 23, 2024
2 parents b901850 + a83d923 commit 315f391
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pyiron_base/cli/control.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
import os
import warnings

from pyiron_base.cli import ls, mv, rm, install, reloadfile, wrapper
from pyiron_base.cli import cp, ls, mv, rm, install, reloadfile, wrapper

__author__ = "Marvin Poul"
__copyright__ = (
Expand All @@ -22,6 +22,7 @@
__date__ = "26 Jun, 2020"

cli_modules = {
"cp": cp,
"ls": ls,
"mv": mv,
"rm": rm,
Expand Down
19 changes: 19 additions & 0 deletions pyiron_base/cli/cp.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# 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 pyiron_base.project.generic import Project


def register(parser):
parser.add_argument("src", help="source project")
parser.add_argument("dst", help="destination project")


def main(args):
src = Project(args.src)
dst = Project(args.dst)
src.copy_to(dst)

0 comments on commit 315f391

Please sign in to comment.