We added a few flags based on priority

This commit is contained in:
ravocean 2021-05-23 15:57:29 -07:00
parent 6e7cd6fd05
commit e4b2ec202d

View file

@ -24,6 +24,10 @@ type BrowseOptions struct {
SelectorArg string
FileArg string // Used for storing the file path
NumberArg int // Used for storing pull request number
ProjectFlag bool
WikiFlag bool
SettingsFlag bool
}
func NewCmdBrowse(f *cmdutil.Factory) *cobra.Command {
@ -49,6 +53,10 @@ func NewCmdBrowse(f *cmdutil.Factory) *cobra.Command {
},
}
cmd.Flags().BoolVarP(&opts.ProjectFlag, "project", "p", false, "Open projects tab in browser")
cmd.Flags().BoolVarP(&opts.WikiFlag, "wiki", "w", false, "Opens the wiki in browser")
cmd.Flags().BoolVarP(&opts.SettingsFlag, "settings", "s", false, "Opens the settings in browse")
return cmd
}
@ -86,11 +94,3 @@ func parseArgs(opts *BrowseOptions) {
}
}
}
func parseFlags(opts *BrowseOptions) {
}
//hello
//making pull request