AliasConfig defines an interface for managing command aliases.
| 349 | |
| 350 | // AliasConfig defines an interface for managing command aliases. |
| 351 | type AliasConfig interface { |
| 352 | // Get retrieves the expansion for a specified alias. |
| 353 | Get(alias string) (expansion string, err error) |
| 354 | |
| 355 | // Add adds a new alias with the specified expansion. |
| 356 | Add(alias, expansion string) |
| 357 | |
| 358 | // Delete removes an alias. |
| 359 | Delete(alias string) error |
| 360 | |
| 361 | // All returns a map of all aliases to their corresponding expansions. |
| 362 | All() map[string]string |
| 363 | } |
no outgoing calls
no test coverage detected