mirror of
https://github.com/aptly-dev/aptly.git
synced 2026-06-08 05:50:47 +00:00
Commands aptly repo move, copy, import.
This commit is contained in:
@@ -0,0 +1,27 @@
|
||||
package cmd
|
||||
|
||||
import (
|
||||
"github.com/gonuts/commander"
|
||||
"github.com/gonuts/flag"
|
||||
)
|
||||
|
||||
func makeCmdRepoCopy() *commander.Command {
|
||||
cmd := &commander.Command{
|
||||
Run: aptlyRepoMoveCopyImport,
|
||||
UsageLine: "copy <src-name> <dst-name> <package-spec> ...",
|
||||
Short: "copy packages between source repos",
|
||||
Long: `
|
||||
Commands copy copies packages matching <package-spec> from local repo
|
||||
<src-name> to local repo <dst-name>.
|
||||
|
||||
ex:
|
||||
$ aptly repo copy testing stable 'myapp (=0.1.12)'
|
||||
`,
|
||||
Flag: *flag.NewFlagSet("aptly-repo-copy", flag.ExitOnError),
|
||||
}
|
||||
|
||||
cmd.Flag.Bool("dry-run", false, "don't copy, just show what would be copied")
|
||||
cmd.Flag.Bool("with-deps", false, "follow dependencies when processing package-spec")
|
||||
|
||||
return cmd
|
||||
}
|
||||
Reference in New Issue
Block a user