Import Bruno's YAML collections; fix defaults of on-by-default switches

- Bruno OpenCollection format (opencollection.yml, folder.yml, .yml
  requests, environments): folders and order, requests, bodies, auth
  including OAuth 2.0, settings, docs; scripts and other rules kept in
  Docs; a note when Bruno's hosted callback URI was used
- bruno.json is optional for .bru collections; picking a folder that
  holds several collections names them
- Collection variables that look like credentials (cookie, session,
  token, secret, password, api key) move to the secrets file and keep
  working under their name
- KeyValue, CollectionSettings, MultipartPart, ExtractRule and
  AssertRule default to enabled like the file format; new collections
  no longer start with the cookie jar turned off
This commit is contained in:
2026-11-27 21:44:33 +01:00
parent d96f9939a0
commit a73490e5d4
8 changed files with 793 additions and 19 deletions
+1 -1
View File
@@ -485,7 +485,7 @@ async fn auth(cmd: AuthCmd) -> Result<i32> {
fn import(source: &Path, dest: &Path) -> Result<i32> {
use knock_core::import::{self, Kind};
let report = if source.is_dir() {
import::import_bruno(source, dest)?
import::import_folder(source, dest)?
} else {
let text = if source == Path::new("-") {
let mut s = String::new();