mirror of
https://github.com/JoshiCodes/knock.git
synced 2026-12-04 19:39:41 +01:00
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:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user