Skip to content

Commit

Permalink
Refactor exports helper and add export method
Browse files Browse the repository at this point in the history
  • Loading branch information
hahwul committed Jun 28, 2024
1 parent b3843b9 commit e2fcd7b
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions lib/caido/helpers/exports.rb → lib/caido/helpers/export.rb
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,21 @@ def exports
}
}')['dataExports']
end

def export(id)
query("query{
dataExport(id: \"#{id}\"){
id
format
name
status
error
createdAt
path
size
downloadUri
}
}")['dataExport']
end
end
end

0 comments on commit e2fcd7b

Please sign in to comment.