Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docker: add docker compose command #3

Merged
merged 2 commits into from
Oct 3, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion docker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ class Docker implements Plugin {
search: (args: string[]) => spawn(this.name, ["search", ...args]),
version: (args: string[]) => spawn(this.name, ["version", ...args]),
info: (args: string[]) => spawn(this.name, ["info", ...args]),
compose: (args: string[]) => spawn(this.name, ["compose", ...args]),
help: () => {
console.log(`Common Commands:
run Create and run a new container from an image
Expand All @@ -30,7 +31,8 @@ class Docker implements Plugin {
logout Log out from a registry
search Search Docker Hub for images
version Show the Docker version information
info Display system-wide information`);
info Display system-wide information
compose Docker Compose`);
return Promise.resolve();
},
};
Expand Down
2 changes: 1 addition & 1 deletion main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ async function repl(

// Learn more at https://deno.land/manual/examples/module_metadata#concepts
if (import.meta.main) {
console.log("Repl v0.1.0 🚀 ✨");
console.log("Repl v0.2.1 🚀 ✨");
console.log("exit using ctrl+c, or exit, type help for more info");
repl();
}