mirror of
https://github.com/ddworken/hishtory.git
synced 2025-02-08 22:50:44 +01:00
Add aliases for plural config options in case people type the singular version
This commit is contained in:
parent
e3b8545116
commit
c735fee3d5
@ -22,6 +22,7 @@ var configAddCmd = &cobra.Command{
|
||||
|
||||
var addCustomColumnsCmd = &cobra.Command{
|
||||
Use: "custom-columns",
|
||||
Aliases: []string{"custom-column"},
|
||||
Short: "Add a custom column",
|
||||
Args: cobra.ExactArgs(2),
|
||||
Run: func(cmd *cobra.Command, args []string) {
|
||||
@ -44,6 +45,7 @@ var addCustomColumnsCmd = &cobra.Command{
|
||||
|
||||
var addDisplayedColumnsCmd = &cobra.Command{
|
||||
Use: "displayed-columns",
|
||||
Aliases: []string{"displayed-column"},
|
||||
Short: "Add a column to be displayed",
|
||||
Args: cobra.ExactArgs(1),
|
||||
Run: func(cmd *cobra.Command, args []string) {
|
||||
|
@ -21,6 +21,7 @@ var configDeleteCmd = &cobra.Command{
|
||||
|
||||
var deleteCustomColumnsCmd = &cobra.Command{
|
||||
Use: "custom-columns",
|
||||
Aliases: []string{"custom-column"},
|
||||
Short: "Delete a custom column",
|
||||
Args: cobra.ExactArgs(1),
|
||||
Run: func(cmd *cobra.Command, args []string) {
|
||||
@ -57,6 +58,7 @@ var deleteCustomColumnsCmd = &cobra.Command{
|
||||
}
|
||||
var deleteDisplayedColumnCommand = &cobra.Command{
|
||||
Use: "displayed-columns",
|
||||
Aliases: []string{"displayed-column"},
|
||||
Short: "Delete a displayed column",
|
||||
Args: cobra.MinimumNArgs(1),
|
||||
Run: func(cmd *cobra.Command, args []string) {
|
||||
|
@ -86,6 +86,7 @@ var getBetaModeCmd = &cobra.Command{
|
||||
|
||||
var getDisplayedColumnsCmd = &cobra.Command{
|
||||
Use: "displayed-columns",
|
||||
Aliases: []string{"displayed-column"},
|
||||
Short: "The list of columns that hishtory displays",
|
||||
Run: func(cmd *cobra.Command, args []string) {
|
||||
ctx := hctx.MakeContext()
|
||||
@ -113,6 +114,7 @@ var getTimestampFormatCmd = &cobra.Command{
|
||||
|
||||
var getCustomColumnsCmd = &cobra.Command{
|
||||
Use: "custom-columns",
|
||||
Aliases: []string{"custom-column"},
|
||||
Short: "The list of custom columns that hishtory is tracking",
|
||||
Run: func(cmd *cobra.Command, args []string) {
|
||||
ctx := hctx.MakeContext()
|
||||
|
@ -127,6 +127,7 @@ var setHighlightMatchesCmd = &cobra.Command{
|
||||
|
||||
var setDisplayedColumnsCmd = &cobra.Command{
|
||||
Use: "displayed-columns",
|
||||
Aliases: []string{"displayed-column"},
|
||||
Short: "The list of columns that hishtory displays",
|
||||
Args: cobra.MinimumNArgs(1),
|
||||
Run: func(cmd *cobra.Command, args []string) {
|
||||
|
Loading…
Reference in New Issue
Block a user