Skip to content

Commit

Permalink
fix(cmd): add hidden option when importing a repository
Browse files Browse the repository at this point in the history
  • Loading branch information
aymanbagabas committed May 2, 2023
1 parent bec3df0 commit ee373fb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion server/cmd/create.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ func createCommand() *cobra.Command {
cmd.Flags().BoolVarP(&private, "private", "p", false, "make the repository private")
cmd.Flags().StringVarP(&description, "description", "d", "", "set the repository description")
cmd.Flags().StringVarP(&projectName, "name", "n", "", "set the project name")
cmd.Flags().BoolVarP(&hidden, "hidden", "H", false, "hide the repository from the list")
cmd.Flags().BoolVarP(&hidden, "hidden", "H", false, "hide the repository from the UI")

return cmd
}
3 changes: 3 additions & 0 deletions server/cmd/import.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ func importCommand() *cobra.Command {
var description string
var projectName string
var mirror bool
var hidden bool

cmd := &cobra.Command{
Use: "import REPOSITORY REMOTE",
Expand All @@ -26,6 +27,7 @@ func importCommand() *cobra.Command {
Description: description,
ProjectName: projectName,
Mirror: mirror,
Hidden: hidden,
}); err != nil {
return err
}
Expand All @@ -37,6 +39,7 @@ func importCommand() *cobra.Command {
cmd.Flags().BoolVarP(&private, "private", "p", false, "make the repository private")
cmd.Flags().StringVarP(&description, "description", "d", "", "set the repository description")
cmd.Flags().StringVarP(&projectName, "name", "n", "", "set the project name")
cmd.Flags().BoolVarP(&hidden, "hidden", "H", false, "hide the repository from the UI")

return cmd
}

0 comments on commit ee373fb

Please sign in to comment.