Package io.aether.cli
Class CliState
java.lang.Object
io.aether.cli.CliState
Manages the persistent JSON state file (~/.aether-cli-state.json)
for storing user preferences like aliases.
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidAdds a new alias and persists it to disk.getUuidForAlias(String alias) Gets the UUID string for a given alias.booleanChecks if a given alias exists.voidload()Loads the state from the JSON file on disk.voidsave()Saves the current state (including all aliases) to the JSON file.
-
Constructor Details
-
CliState
public CliState()
-
-
Method Details
-
load
public void load()Loads the state from the JSON file on disk. -
save
public void save()Saves the current state (including all aliases) to the JSON file. -
addAlias
-
getAliases
-
hasAlias
Checks if a given alias exists.- Parameters:
alias- The alias name.- Returns:
- true if the alias exists.
-
getUuidForAlias
-