2023-12-08 21:52:26 +00:00
|
|
|
package cmd
|
|
|
|
|
|
|
|
const (
|
2023-12-19 17:16:45 +00:00
|
|
|
defGitlabHost = "https://gitlab.com"
|
2023-12-10 15:10:46 +00:00
|
|
|
defLogLevel = "info"
|
|
|
|
defConfigPath = "~/.config/gitlab-project-manager.yaml"
|
2023-12-08 21:52:26 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
const aliasCmdLong = `Manages project aliases, with options for
|
|
|
|
listing, adding, and deleting.`
|
|
|
|
|
2023-12-09 04:13:17 +00:00
|
|
|
const aliasListCmdLong = `Lists all aliases by project`
|
|
|
|
|
2023-12-08 21:52:26 +00:00
|
|
|
const aliasAddCmdLong = `Adds a project alias to a project
|
|
|
|
project ID can be provided, or will otherwise use fuzzy find`
|
|
|
|
|
2023-12-08 22:06:09 +00:00
|
|
|
const aliasDeleteCmdLong = `Deletes aliases from projects
|
|
|
|
project ID can be provided, or will otherwise use fuzzy find`
|
|
|
|
|
2023-12-08 21:52:26 +00:00
|
|
|
const cacheCmdLong = `Contains sub-commands for managing project cache.
|
|
|
|
The project cache keeps this speedy, without smashing against the GitLab
|
|
|
|
API every time a new project is added / searched for`
|
|
|
|
|
|
|
|
const rootCmdLong = `Finds GitLab projects using fuzzy-find, remembering
|
|
|
|
your chosen term for the project as an alias, and offers helpful
|
|
|
|
shortcuts for moving around in projects and opening your code`
|
|
|
|
|
|
|
|
const projCmdLong = `Switches to a GitLab project by name or alias
|
|
|
|
If not found, will enter fzf mode. If not cloned, will clone
|
|
|
|
the project locally.`
|
|
|
|
|
2023-12-09 04:13:17 +00:00
|
|
|
const projGoCmdLong = `Go to a project, searching by alias
|
|
|
|
If project is not already cloned, its path will be built and it
|
|
|
|
will be cloned from source control.
|
|
|
|
|
|
|
|
If conf.projects.alwaysPull, a git pull will be ran automatically`
|
|
|
|
|
2023-12-10 04:19:19 +00:00
|
|
|
const projListCmdLong = `List locally cloned projects. Optionally
|
|
|
|
lists all projects in project cache`
|
|
|
|
|
|
|
|
const projAddCmdLong = `Adds a new project to the local project path
|
|
|
|
uses fuzzy find to locate the project`
|
|
|
|
|
2023-12-08 21:52:26 +00:00
|
|
|
const projShowCmdLong = `Shows detail for a particular project
|
|
|
|
Will always fuzzy find`
|
2023-12-10 15:10:46 +00:00
|
|
|
|
2023-12-12 21:30:33 +00:00
|
|
|
const projOpenCmdLong = `Opens the given project directory in the editor
|
|
|
|
of your choice. Will find certain well-known entrypoints (e.g. main.go).
|
|
|
|
|
|
|
|
If your editor is set in your config file, it will be used, otherwise
|
|
|
|
one will be found in your path from a list of known defaults.`
|
|
|
|
|
2023-12-10 15:10:46 +00:00
|
|
|
const configCmdLong = `Commands for managing configuration, particulary
|
|
|
|
useful for seeding a new config file`
|
|
|
|
|
|
|
|
const configGenCmdLong = `Produces yaml to stdout that can be used
|
|
|
|
to seed the configuration file`
|