mirror of
https://github.com/LukeHagar/redocly-cli.git
synced 2025-12-06 12:47:48 +00:00
feat: push command (#234)
* feat: wip push command * chore: rebase to new structure * chore: handle cli push arguments * chore: get signed url; upload file to s3; create hash from files; * chore: upsert logic * upsert + version logic updated * chore: multiple sign & upload files * chore: improve destination arg validation * chore: execution time * fix: added isAuthorized client logic * chore: extended upload files logic * chore: default branch logic * fix: naming and other corrections * fix: destination arg regexp updated * chore: check the existence of the organization * fix: file path to s3 upload * chore: refactor gathering files to upload * fix: path resolve for root * chore: add files output * chore: fix files output * chore: simplify findConfig * fix: bundle definition before pushing * fix: upload all related files to plugins * fix: ignore file & naming corrections * fix: bundling definition * chore: minor cleanup Co-authored-by: romanhotsiy <gotsijroman@gmail.com>
This commit is contained in:
@@ -97,7 +97,7 @@ export class CircularJSONNotSupportedError extends Error {
|
||||
}
|
||||
}
|
||||
|
||||
export function dumpBundle(obj: any, format: BundleOutputFormat, dereference?: boolean) {
|
||||
export function dumpBundle(obj: any, format: BundleOutputFormat, dereference?: boolean): string {
|
||||
if (format === 'json') {
|
||||
try {
|
||||
return JSON.stringify(obj, null, 2);
|
||||
|
||||
Reference in New Issue
Block a user