AliasConfig defines an interface for managing command aliases.
| 208 | |
| 209 | // AliasConfig defines an interface for managing command aliases. |
| 210 | type AliasConfig interface { |
| 211 | // Get retrieves the expansion for a specified alias. |
| 212 | Get(alias string) (expansion string, err error) |
| 213 | |
| 214 | // Add adds a new alias with the specified expansion. |
| 215 | Add(alias, expansion string) |
| 216 | |
| 217 | // Delete removes an alias. |
| 218 | Delete(alias string) error |
| 219 | |
| 220 | // All returns a map of all aliases to their corresponding expansions. |
| 221 | All() map[string]string |
| 222 | } |
no outgoing calls
no test coverage detected