feat(commands): more commands (#30)
- I wrote a scripts to copy and generate all commands missing in iris from fig repo: https://github.com/withfig/autocomplete - Add a new script to generate commands docs about which commands currently are inside commands folder 377d4aac663590e504fe39a92eb4dac4cbd333b2 - Add more icons e64d4e70a1db61e62053460a882e093bd6373ab1
This commit is contained in:
@@ -0,0 +1,35 @@
|
||||
package git
|
||||
|
||||
import (
|
||||
"github.com/versenilvis/iris/commands/core"
|
||||
)
|
||||
|
||||
func init() {
|
||||
core.Register(&core.Spec{
|
||||
Name: "ghq",
|
||||
Description: "Clone/sync with a remote repository",
|
||||
Subcommands: []core.Subcommand{
|
||||
{Name: "get", Description: "Clone/sync with a remote repository"},
|
||||
{Name: "list", Description: "List local repositories"},
|
||||
{Name: "root", Description: "Show repositories' root"},
|
||||
{Name: "create", Description: "Create a new repository"},
|
||||
},
|
||||
Options: []core.Option{
|
||||
{Name: "-u", Description: "Update local repository if cloned already (default: false)"},
|
||||
{Name: "-p", Description: "Clone with SSH (default: false)"},
|
||||
{Name: "--shallow", Description: "Do a shallow clone (default: false)"},
|
||||
{Name: "-l", Description: "Look after get (default: false)"},
|
||||
{Name: "--vcs", Description: "Specify vcs backend for cloning"},
|
||||
{Name: "-s", Description: "Clone or update silently (default: false)"},
|
||||
{Name: "--no-recursive", Description: "Prevent recursive fetching (default: false)"},
|
||||
{Name: "-b", Description: "Specify branch name. This flag implies --single-branch on Git"},
|
||||
{Name: "-P", Description: "Import parallelly (default: false)"},
|
||||
{Name: "--bare", Description: "Do a bare clone (default: false)"},
|
||||
{Name: "-e", Description: "Perform an exact match (default: false)"},
|
||||
{Name: "--unique", Description: "Print unique subpaths (default: false)"},
|
||||
{Name: "--all", Description: "Show all roots (default: false)"},
|
||||
{Name: "-h", Description: "Show help"},
|
||||
{Name: "-v", Description: "Print the version"},
|
||||
},
|
||||
})
|
||||
}
|
||||
@@ -0,0 +1,35 @@
|
||||
package git
|
||||
|
||||
import (
|
||||
"github.com/versenilvis/iris/commands/core"
|
||||
)
|
||||
|
||||
func init() {
|
||||
core.Register(&core.Spec{
|
||||
Name: "git-cliff",
|
||||
Description: "Increases the logging verbosity",
|
||||
Options: []core.Option{
|
||||
{Name: "--verbose", Description: "Increases the logging verbosity"},
|
||||
{Name: "--init", Description: "Writes the default configuration file to cliff.toml"},
|
||||
{Name: "--latest", Description: "Processes the commits starting from the latest tag"},
|
||||
{Name: "--current", Description: "Processes the commits that belong to the current tag"},
|
||||
{Name: "--unreleased", Description: "Processes the commits that do not belong to a tag"},
|
||||
{Name: "--date-order", Description: "Sorts the tags chronologically"},
|
||||
{Name: "--context", Description: "Prints changelog context as JSON"},
|
||||
{Name: "--help", Description: "Prints help information"},
|
||||
{Name: "--version", Description: "Prints version information"},
|
||||
{Name: "--config", Description: "Sets the configuration file"},
|
||||
{Name: "--workdir", Description: "Sets the working directory"},
|
||||
{Name: "--repository", Description: "Sets the git repository"},
|
||||
{Name: "--include-path", Description: "Sets the path to include related commits"},
|
||||
{Name: "--exclude-path", Description: "Sets the path to exclude related commits"},
|
||||
{Name: "--with-commit", Description: "Sets custom commit messages to include in the changelog"},
|
||||
{Name: "--prepend", Description: "Prepends entries to the given changelog file"},
|
||||
{Name: "--output", Description: "Writes output to the given file"},
|
||||
{Name: "--tag", Description: "Sets the tag for the latest version"},
|
||||
{Name: "--body", Description: "Sets the template for the changelog body"},
|
||||
{Name: "--strip", Description: "Strips the given parts from the changelog"},
|
||||
{Name: "--sort", Description: "Sets sorting of the commits inside sections"},
|
||||
},
|
||||
})
|
||||
}
|
||||
@@ -0,0 +1,29 @@
|
||||
package git
|
||||
|
||||
import (
|
||||
"github.com/versenilvis/iris/commands/core"
|
||||
)
|
||||
|
||||
func init() {
|
||||
core.Register(&core.Spec{
|
||||
Name: "git-flow",
|
||||
Description: "Git extensions to provide high-level repository operations for Vincent Driessen's branching model",
|
||||
Subcommands: []core.Subcommand{
|
||||
{Name: "init", Description: "Initialize a new git repo with support for the branching model"},
|
||||
{Name: "feature", Description: "List all feature branches"},
|
||||
{Name: "start", Description: "Create a new feature branch"},
|
||||
{Name: "name", Description: "The name of the new feature branch"},
|
||||
{Name: "finish", Description: "Merge a feature branch into develop"},
|
||||
{Name: "publish", Description: "Push a feature branch to the remote repository"},
|
||||
{Name: "pull", Description: "Pull a feature branch from the remote repository"},
|
||||
{Name: "origin", Description: "The name of the remote feature branch"},
|
||||
{Name: "release", Description: "List all release branches"},
|
||||
{Name: "hotfix", Description: "List all hotfix branches"},
|
||||
{Name: "support", Description: "List all support branches"},
|
||||
},
|
||||
Options: []core.Option{
|
||||
{Name: "-d", Description: "Use default branch naming conventions"},
|
||||
{Name: "-f", Description: "Force setting of gitflow branches, even if already configured"},
|
||||
},
|
||||
})
|
||||
}
|
||||
@@ -0,0 +1,19 @@
|
||||
package git
|
||||
|
||||
import (
|
||||
"github.com/versenilvis/iris/commands/core"
|
||||
)
|
||||
|
||||
func init() {
|
||||
core.Register(&core.Spec{
|
||||
Name: "git-profile",
|
||||
Description: "Use profile",
|
||||
Subcommands: []core.Subcommand{
|
||||
{Name: "use", Description: "Use a profile"},
|
||||
{Name: "profile", Description: "Profile you want to apply in this repository"},
|
||||
},
|
||||
Options: []core.Option{
|
||||
{Name: "--help", Description: "Help for git-profile script"},
|
||||
},
|
||||
})
|
||||
}
|
||||
@@ -0,0 +1,33 @@
|
||||
package git
|
||||
|
||||
import (
|
||||
"github.com/versenilvis/iris/commands/core"
|
||||
)
|
||||
|
||||
func init() {
|
||||
core.Register(&core.Spec{
|
||||
Name: "git-quick-stats",
|
||||
Description: "Show help for git-quick-stats",
|
||||
Options: []core.Option{
|
||||
{Name: "--help", Description: "Show help for git-quick-stats"},
|
||||
{Name: "--suggest-reviewers", Description: "Show the best people to contact to review code"},
|
||||
{Name: "--detailed-git-stats", Description: "Give a detailed list of git stats"},
|
||||
{Name: "---git-stats-by-branch", Description: "Show detailed list of git stats by branch"},
|
||||
{Name: "--changelogs", Description: "Show changelogs"},
|
||||
{Name: "--changelogs-by-author", Description: "Show changelogs by author"},
|
||||
{Name: "--my-daily-stats", Description: "Show your current daily stats"},
|
||||
{Name: "--json-output", Description: "Save git log as a JSON formatted file to a specified area"},
|
||||
{Name: "--branch-tree", Description: "Show an ASCII graph of the git repo branch history"},
|
||||
{Name: "--branches-by-date", Description: "Show branches by date"},
|
||||
{Name: "--contributors", Description: "See a list of everyone who contributed to the repo"},
|
||||
{Name: "--commits-per-author", Description: "Displays a list of commits per author"},
|
||||
{Name: "--commits-per-day", Description: "Displays a list of commits per day"},
|
||||
{Name: "--commits-by-month", Description: "Displays a list of commits per month"},
|
||||
{Name: "--commits-by-year", Description: "Displays a list of commits per year"},
|
||||
{Name: "--commits-by-weekday", Description: "Displays a list of commits per weekday"},
|
||||
{Name: "--commits-by-hour", Description: "Displays a list of commits per hour"},
|
||||
{Name: "--commits-by-author-by-hour", Description: "Displays a list of commits per hour by author"},
|
||||
{Name: "--commits-by-timezone", Description: "Displays a list of commits per timezone"},
|
||||
},
|
||||
})
|
||||
}
|
||||
@@ -0,0 +1,21 @@
|
||||
package git
|
||||
|
||||
import (
|
||||
"github.com/versenilvis/iris/commands/core"
|
||||
)
|
||||
|
||||
func init() {
|
||||
core.Register(&core.Spec{
|
||||
Name: "github",
|
||||
Description: "Open a git repository in GitHub Desktop",
|
||||
Subcommands: []core.Subcommand{
|
||||
{Name: "clone", Description: "Clone a repository"},
|
||||
{Name: "open", Description: "Open a git repository in GitHub Desktop"},
|
||||
{Name: "help", Description: "Show the help page for a command"},
|
||||
},
|
||||
Options: []core.Option{
|
||||
{Name: "--help", Description: "Show the help page for a command"},
|
||||
{Name: "--branch", Description: "The branch to checkout after cloning"},
|
||||
},
|
||||
})
|
||||
}
|
||||
@@ -0,0 +1,35 @@
|
||||
package git
|
||||
|
||||
import (
|
||||
"github.com/versenilvis/iris/commands/core"
|
||||
)
|
||||
|
||||
func init() {
|
||||
core.Register(&core.Spec{
|
||||
Name: "svn",
|
||||
Description: "Specify a username ARG",
|
||||
Subcommands: []core.Subcommand{
|
||||
{Name: "help", Description: "Show help for svn"},
|
||||
{Name: "subcommand", Description: "Help about specific subcommand"},
|
||||
{Name: "status", Description: "Show the working tree status"},
|
||||
{Name: "info", Description: "Show information about a local or remote item"},
|
||||
{Name: "checkout", Description: "Check out a working copy from a repository"},
|
||||
{Name: "repository", Description: "The repository you want to checkout"},
|
||||
{Name: "commit", Description: "Commit to a repository"},
|
||||
},
|
||||
Options: []core.Option{
|
||||
{Name: "--password", Description: "Specify a password ARG"},
|
||||
{Name: "--password-from-stdin", Description: "Read password from stdin"},
|
||||
{Name: "--no-auth-cache", Description: "Do not cache authentication tokens"},
|
||||
{Name: "--non-interactive", Description: "Do interactive prompting even if standard input is not a terminal device"},
|
||||
{Name: "--trust-server-cert", Description: "Specify a password ARG"},
|
||||
{Name: "--trust-server-cert-failures", Description: "Specify a password ARG"},
|
||||
{Name: "--config-dir", Description: "Read user configuration files from directory ARG"},
|
||||
{Name: "--config-option", Description: "Specify a password ARG"},
|
||||
{Name: "-m", Description: "Use the given message as the commit message"},
|
||||
{Name: "--version", Description: "Show help for svn"},
|
||||
{Name: "--verbose", Description: "Show help for svn"},
|
||||
{Name: "--quiet", Description: "Show help for svn"},
|
||||
},
|
||||
})
|
||||
}
|
||||
Reference in New Issue
Block a user