mirror of
				https://github.com/juanfont/headscale.git
				synced 2025-10-28 10:51:44 +01:00 
			
		
		
		
	feat(aliases): add aliases for route command
				
					
				
			- `r` is alias for `route` command - `ls`, or `show` is alias for `list` subcommand
This commit is contained in:
		
							parent
							
								
									dec4ee5f73
								
							
						
					
					
						commit
						dbb2af0238
					
				| @ -37,11 +37,13 @@ func init() { | |||||||
| var routesCmd = &cobra.Command{ | var routesCmd = &cobra.Command{ | ||||||
| 	Use:     "routes", | 	Use:     "routes", | ||||||
| 	Short:   "Manage the routes of Headscale", | 	Short:   "Manage the routes of Headscale", | ||||||
|  | 	Aliases: []string{"r", "route"}, | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| var listRoutesCmd = &cobra.Command{ | var listRoutesCmd = &cobra.Command{ | ||||||
| 	Use:     "list", | 	Use:     "list", | ||||||
| 	Short:   "List routes advertised and enabled by a given node", | 	Short:   "List routes advertised and enabled by a given node", | ||||||
|  | 	Aliases: []string{"ls", "show"}, | ||||||
| 	Run: func(cmd *cobra.Command, args []string) { | 	Run: func(cmd *cobra.Command, args []string) { | ||||||
| 		output, _ := cmd.Flags().GetString("output") | 		output, _ := cmd.Flags().GetString("output") | ||||||
| 
 | 
 | ||||||
|  | |||||||
		Loading…
	
		Reference in New Issue
	
	Block a user