Skip to content
This repository has been archived by the owner on Feb 19, 2023. It is now read-only.

Commit

Permalink
working yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
janithcooray committed Jun 29, 2022
1 parent c5be926 commit 50bc2be
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 11 deletions.
6 changes: 0 additions & 6 deletions index.js

This file was deleted.

13 changes: 8 additions & 5 deletions src/init.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,6 @@ export default class Init extends Log {

const args_ = process.argv.slice(2);



switch (args_[0]) {
case "run":
new ProcessLinkYml();
Expand All @@ -31,21 +29,26 @@ export default class Init extends Log {
this.help()
case "-h":
this.help()

break;
default:
case null:
this.output("Missing Command!");
this.help()
default:
this.output(`Unknown Command "${args_[0]}"`);
this.help()
break;
}
}

help(){
this.output(
`COMMANDS: [Option] <ARG1> <ARG2> ..
`Commands: [Option] <ARG1> <ARG2> ...
run - run sync compose
help,-h , --help - display this help message
convert - convert an existing docker-compose.yml
version - Display Version
`);
}

Expand Down

0 comments on commit 50bc2be

Please sign in to comment.