mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-05-16 23:02:51 -07:00
docs: clarify wildcard policy flag in enterprise controls
test: fix outdated test description referring to YOLO mode
This commit is contained in:
@@ -22,7 +22,7 @@ preferred method for enforcing policy.
|
||||
**Enabled/Disabled** | Default: enabled
|
||||
|
||||
If enabled, users will not be able to use the `--yolo` flag or wildcard tool
|
||||
policies.
|
||||
policies (e.g. `--allowed-tools=*`).
|
||||
|
||||
### Extensions
|
||||
|
||||
|
||||
@@ -1738,7 +1738,7 @@ describe('setApprovalMode with folder trust', () => {
|
||||
cwd: '.',
|
||||
};
|
||||
|
||||
it('should throw an error when setting YOLO mode in an untrusted folder', () => {
|
||||
it('should throw an error when setting PLAN mode in an untrusted folder', () => {
|
||||
const config = new Config(baseParams);
|
||||
vi.spyOn(config, 'isTrustedFolder').mockReturnValue(false);
|
||||
expect(() => config.setApprovalMode(ApprovalMode.PLAN)).toThrow(
|
||||
|
||||
Reference in New Issue
Block a user