Skip to content

Implement secrets cp command #249

Open
@tegefaulkes

Description

@tegefaulkes

Specification

The secrets cp command is very similar to the secrets mv command. It will copy the provided paths to the provided destination.

  1. copy a file to a destination directory
  2. Multiple source paths can be specified. The last argument is the destination.
  3. Globing and wildcards are supported.
  4. Globing is supported for the destination. but only the last of the list is the destination. I say we don't support it.

There are two main differences between the mv command.

  1. The source files are left unchanged the copied. The Inode of the source and destination are different.
  2. The destination files are always created fresh and overwrite the destination.

So there are no subtle behaviours with the moving the file vs copying them between filesystems.

Additional context

Related #32

Tasks

  1. Implement a secrets cp command
  2. Supports copying a file from source path to destination.
  3. And take a variable number of source paths with the last path being the destination.
  4. Supports globing and wild cards.
  5. Supports copying directories with contents.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions