Skip to content

Commit

Permalink
..
Browse files Browse the repository at this point in the history
  • Loading branch information
danjoa committed Nov 7, 2024
1 parent 78df2d2 commit d5d3c41
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions .github/workflows/checkout
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
#!/usr/bin/env node
/* eslint-disable no-console */

const cds = require("@sap/cds")
const { read, write, append=_append, fs, path } = cds.utils
// helpers
const _append = str => ({ to: file => cds.utils.fs.promises.appendFile(cds.utils.path.join(cds.root,file), str) })
const _stringified = o => JSON.stringify(o,null,2)

const cds = require("@sap/cds")
const { read, write, append=_append } = cds.utils

const checkout = {

async 'remote-service' () {
Expand All @@ -25,9 +27,5 @@ const checkout = {
}
}

function _append(str) {
return { to: file => fs.promises.appendFile(path.join(cds.root,file), str) }
}

const [,,$1] = process.argv
checkout[$1]?.() || console.log('Usage: ./checkout remote-service | messaging')

0 comments on commit d5d3c41

Please sign in to comment.