mirror of
https://github.com/floci-io/floci-cli.git
synced 2026-11-22 21:50:47 -05:00
feat(az): configure the az CLI against floci-az with floci az setup (#29)
This commit is contained in:
1 parent
dd38f6dc27
commit
7b58a38c5a
27 files changed
+1587
-12
No files matched your search
@@ -25,4 +25,13 @@ public final class ShellExport {
|
||||
default -> "export " + key + "='" + value.replace("'", "'\\''") + "'";
|
||||
};
|
||||
}
|
||||
|
||||
/** Renders the line that removes {@code key} from the environment in the given shell. */
|
||||
public static String formatUnset(String shell, String key) {
|
||||
return switch (shell.toLowerCase()) {
|
||||
case "fish" -> "set -e " + key;
|
||||
case "powershell", "ps1" -> "Remove-Item Env:" + key + " -ErrorAction SilentlyContinue";
|
||||
default -> "unset " + key;
|
||||
};
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user