Skip to content

Commit 9a43ff0

Browse files
committed
Added Hello World
1 parent d67e91e commit 9a43ff0

File tree

2 files changed

+21
-0
lines changed

2 files changed

+21
-0
lines changed

pages/docs/_meta.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,6 @@
22
"index": "Introduction",
33
"why-poac": "Why Poac?",
44
"installation": "Installation",
5+
"hello-world": "Hello, World!",
56
"usage": "Usage"
67
}

pages/docs/hello-world.mdx

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
## Hello World
2+
3+
You can get started with just a few commands as the demo shows. Let's create a new Poac project:
4+
5+
```console
6+
you:~$ poac new hello_world
7+
Created binary (application) `hello_world` package
8+
```
9+
10+
Now, you can use the `poac run` command to run your application:
11+
12+
```console
13+
you:~$ cd hello_world
14+
you:~/hello_world$ poac run
15+
Compiling src/main.cc
16+
Linking hello_world
17+
Finished debug target(s) in 0.45386s
18+
Running poac-out/debug/hello_world
19+
Hello, world!
20+
```

0 commit comments

Comments
 (0)