Skip to content

Commit

Permalink
chore: Add aliases to clean and deps commands
Browse files Browse the repository at this point in the history
  • Loading branch information
angelmadames committed Apr 2, 2024
1 parent 1680bea commit 0f11ba2
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions bunfig.toml
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
[test]
root = "./test"
preload = ["./test/setup.ts"]
1 change: 1 addition & 0 deletions src/commands/clean/deps.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ export const cleanDepsCommand = () => {
const command = new Command();
command
.name('deps')
.aliases(['dependencies'])
.summary('Cleanup repositories dependencies (node_modules).')
.description('Cleans all repos dependencies locally installed.')
.addOption(sharedOptions.force())
Expand Down
1 change: 1 addition & 0 deletions src/commands/clean/dot-env.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ export const cleanDotEnvCommand = () => {
const command = new Command();
command
.name('dot-env')
.aliases(['env', 'dotenv'])
.summary('Cleanup repositories dot env files (.env).')
.description(
'Removes the dot env files (.env) for all the DEMS-managed repositories configured.',
Expand Down
1 change: 1 addition & 0 deletions src/commands/clean/repos.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ export const cleanReposCommand = () => {
const command = new Command();
command
.name('repos')
.aliases(['repositories', 'repo'])
.summary("Remove the current project's git repositories.")
.description(
noIndent(`
Expand Down
2 changes: 1 addition & 1 deletion src/commands/dependencies/copy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export const depsCopyCommand = () => {
const config = projectConfig();
for (const repo of config.repositories) {
composeExec({
cmd: [
command: [
'cp',
`${repo.replace(
`${config.compose.project_name}-`,
Expand Down

0 comments on commit 0f11ba2

Please sign in to comment.