AliasConfig defines an interface for managing command aliases.
| 216 | |
| 217 | // AliasConfig defines an interface for managing command aliases. |
| 218 | type AliasConfig interface { |
| 219 | // Get retrieves the expansion for a specified alias. |
| 220 | Get(alias string) (expansion string, err error) |
| 221 | |
| 222 | // Add adds a new alias with the specified expansion. |
| 223 | Add(alias, expansion string) |
| 224 | |
| 225 | // Delete removes an alias. |
| 226 | Delete(alias string) error |
| 227 | |
| 228 | // All returns a map of all aliases to their corresponding expansions. |
| 229 | All() map[string]string |
| 230 | } |
no outgoing calls
no test coverage detected