AliasConfig defines an interface for managing command aliases.
| 332 | |
| 333 | // AliasConfig defines an interface for managing command aliases. |
| 334 | type AliasConfig interface { |
| 335 | // Get retrieves the expansion for a specified alias. |
| 336 | Get(alias string) (expansion string, err error) |
| 337 | |
| 338 | // Add adds a new alias with the specified expansion. |
| 339 | Add(alias, expansion string) |
| 340 | |
| 341 | // Delete removes an alias. |
| 342 | Delete(alias string) error |
| 343 | |
| 344 | // All returns a map of all aliases to their corresponding expansions. |
| 345 | All() map[string]string |
| 346 | } |
no outgoing calls
no test coverage detected