Skip to content

Commit 7796c5a

Browse files
feat: remove logs and improve testing (auto apply -y). Bump version (#65)
1 parent feaaf32 commit 7796c5a

3 files changed

Lines changed: 2 additions & 5 deletions

File tree

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@
146146
"deploy": "npm run pkg && npm run notarize && npm run upload",
147147
"prepublishOnly": "npm run build"
148148
},
149-
"version": "1.2.1",
149+
"version": "1.2.2",
150150
"bugs": "https://github.com/codifycli/codify/issues",
151151
"keywords": [
152152
"oclif",

src/orchestrators/test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ export const TestOrchestrator = {
7878
await spawn(`tart exec ${vmName} ln -s /Volumes/My\\ Shared\\ Files/codify-config/${path.basename(initializationResult.project.codifyFiles[0])} /Users/admin/codify.jsonc`, { interactive: true });
7979

8080
// Launch terminal and run codify apply
81-
await (args.vmOs === OS.Darwin ? spawn(`tart exec ${vmName} osascript -e "tell application \\"Terminal\\" to do script \\"cd ~ && codify apply\\""`, { interactive: true }) : spawn(`tart exec ${vmName} gnome-terminal -- bash -c "cd ~/ && codify apply"`, { interactive: true }));
81+
await (args.vmOs === OS.Darwin ? spawn(`tart exec ${vmName} osascript -e "tell application \\"Terminal\\" to do script \\"cd ~ && codify apply -y\\""`, { interactive: true }) : spawn(`tart exec ${vmName} gnome-terminal -- bash -c "cd ~/ && codify apply"`, { interactive: true }));
8282

8383
this.watchAndSyncFileChanges(initializationResult.project.codifyFiles[0], ip);
8484

src/utils/shell.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -138,8 +138,6 @@ export const ShellUtils = {
138138
const shell = ShellUtils.getDefaultShell();
139139
const output: string[] = [];
140140

141-
console.log('Shell', shell);
142-
143141
await new Promise<void>((resolve, reject) => {
144142
const mPty = pty.spawn(shell, ['-i', '-c', `echo '${SENTINEL}'`], {
145143
cols: 80,
@@ -158,7 +156,6 @@ export const ShellUtils = {
158156
mPty.onExit(() => {
159157
clearTimeout(timer);
160158
const captured = stripAnsi(output.join('').trim());
161-
console.log('Captured', captured);
162159

163160
const lines = captured
164161
.split('\n')

0 commit comments

Comments
 (0)