Skip to content

Commit 2afb695

Browse files
author
b
committed
wip
1 parent 91230cd commit 2afb695

2 files changed

Lines changed: 30 additions & 3 deletions

File tree

pyproject.toml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
[tool.poetry]
2+
name = "promptexecutionwebsite"
3+
version = "0.1.0"
4+
description = ""
5+
authors = ["b <b@elastic.ventures>"]
6+
readme = "README.md"
7+
8+
[tool.poetry.dependencies]
9+
python = "^3.10"
10+
11+
12+
[build-system]
13+
requires = ["poetry-core"]
14+
build-backend = "poetry.core.masonry.api"

src/components/CommandLineInterface.vue

Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,17 @@
11
<template>
2-
<vue-command :commands="commands" :hide-buttons="true" :cursor-position="0" :is-fullscreen="true">
3-
<template #title>bash - 720x350</template>
2+
<vue-command :commands="commands" :hide-buttons="true" :show-help="true" :cursor-position="0" :is-fullscreen="true">
3+
<template #title>Command Line Interface v0.1 -- type "help" for instructions</template>
4+
<template #prompt>
5+
<span class="prompt">
6+
<span class="prompt-user">guest</span>
7+
<span class="prompt-path">~</span>
8+
<span class="prompt-symbol">$&nbsp;</span>
9+
</span>
10+
</template>
11+
<template #show-help>true</template>
12+
<template #help-text>asdfasdf</template>
13+
<template #invert>true</template>
14+
<template #font></template>
415
</vue-command>
516
</template>
617

@@ -16,7 +27,9 @@ export default {
1627
1728
data: () => ({
1829
commands: {
19-
"hello-world": () => createStdout("Hello world"),
30+
"help": () => createStdout("Available commands: hello, login"),
31+
"login": () => createStdout("Login not available"),
32+
"hello": () => createStdout("Hello world! #wip"),
2033
},
2134
}),
2235
};

0 commit comments

Comments
 (0)