PromucFlow_constructor/deploy/docker/fs/opt/appsmith/utils/bin
Shrikant Sharat Kandula 748a5eccb4
chore: Remove shelljs use from backup command (#37356)
This is towards fixing `appsmithctl` into a modern component of the
project. First order of business is to get rid of the `shelljs`
dependency, since we don't really need it that seriously, and since it
does weird stuff with `require()` that we can't use `esbuild` to build
`appsmithctl`.

Further PRs will remove `shelljs` from other commands as well, and then
we'll remove `shelljs` from our dependencies.


## Automation

/test sanity

### 🔍 Cypress test results
<!-- This is an auto-generated comment: Cypress test results  -->
> [!TIP]
> 🟢 🟢 🟢 All cypress tests have passed! 🎉 🎉 🎉
> Workflow run:
<https://github.com/appsmithorg/appsmith/actions/runs/11814325698>
> Commit: 98261ee8c8a52090b1e9bb27a27be4be0874b83f
> <a
href="https://internal.appsmith.com/app/cypress-dashboard/rundetails-65890b3c81d7400d08fa9ee5?branch=master&workflowId=11814325698&attempt=1"
target="_blank">Cypress dashboard</a>.
> Tags: `@tag.Sanity`
> Spec:
> <hr>Wed, 13 Nov 2024 09:58:36 UTC
<!-- end of auto-generated comment: Cypress test results  -->


## Communication
Should the DevRel and Marketing teams inform users about this change?
- [ ] Yes
- [x] No


<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit

- **New Features**
- Improved backup process with enhanced error handling and asynchronous
checks for available disk space.
- New function for executing commands with output capture added to
utility functions.

- **Bug Fixes**
- Refined error messages for insufficient disk space and password
mismatches during backup.

- **Tests**
- Expanded test suite for backup utilities and command execution,
ensuring robust coverage of various scenarios.

- **Documentation**
	- Updated formatting of numeric constants for better readability.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2024-11-14 10:33:27 +05:30
..
backup.js chore: Remove shelljs use from backup command (#37356) 2024-11-14 10:33:27 +05:30
backup.test.js chore: Remove shelljs use from backup command (#37356) 2024-11-14 10:33:27 +05:30
check_replica_set.js test: Enable server tests for the PRs with base PG branch (#33429) 2024-05-22 15:55:20 +05:30
constants.js chore: Remove shelljs use from backup command (#37356) 2024-11-14 10:33:27 +05:30
export_db.js fix: failing backup and restore appsmithctl (#35162) 2024-08-06 19:34:59 +05:30
import_db.js fix: failing backup and restore appsmithctl (#35162) 2024-08-06 19:34:59 +05:30
index.js fix: DB URL override fails in some cases (#34206) 2024-06-12 17:45:19 +05:30
logger.js
mailer.js
mongo_shell_utils.js test: Enable server tests for the PRs with base PG branch (#33429) 2024-05-22 15:55:20 +05:30
move-to-postgres.mjs chore: Add mongo data migration check before initializing the postgres dump (#37059) 2024-11-05 08:26:02 +05:30
restore.js fix: failing backup and restore appsmithctl (#35162) 2024-08-06 19:34:59 +05:30
utils.js chore: Remove shelljs use from backup command (#37356) 2024-11-14 10:33:27 +05:30
utils.test.js chore: Remove shelljs use from backup command (#37356) 2024-11-14 10:33:27 +05:30
version.js