Skip to content

Commit 47041fe

Browse files
committed
added banner and updated README
1 parent 595a5fc commit 47041fe

2 files changed

Lines changed: 20 additions & 1 deletion

File tree

README.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ This will crate a binary called `zasper`. Now add this binary to your path.
132132
Run zasper in any directory to see if the installation was done correctly.
133133

134134
```
135-
prasunanand@Prasuns-Laptop examples % ../zasper -h
135+
% zasper -h
136136
Usage of ../zasper:
137137
-cwd string
138138
base directory of project (default ".")
@@ -144,8 +144,18 @@ Usage of ../zasper:
144144

145145

146146
Go to any directory you want to serve and run `zasper`. This starts zasper server in the directory.
147+
```
148+
% zasper
149+
2024/12/15 20:39:12 Zasper Server started! Listening on port:8888
147150
151+
███████╗ █████╗ ███████╗██████╗ ███████╗██████╗
152+
╚══███╔╝██╔══██╗██╔════╝██╔══██╗██╔════╝██╔══██╗
153+
███╔╝ ███████║███████╗██████╔╝█████╗ ██████╔╝
154+
███╔╝ ██╔══██║╚════██║██╔═══╝ ██╔══╝ ██╔══██╗
155+
███████╗██║ ██║███████║██║ ███████╗██║ ██║
156+
╚══════╝╚═╝ ╚═╝╚══════╝╚═╝ ╚══════╝╚═╝ ╚═╝
148157
158+
```
149159

150160
Go to `http://localhost:8888`
151161

app.go

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,15 @@ func main() {
134134
stop := make(chan os.Signal, 1)
135135
signal.Notify(stop, syscall.SIGINT, syscall.SIGTERM)
136136

137+
fmt.Println(`
138+
███████╗ █████╗ ███████╗██████╗ ███████╗██████╗
139+
╚══███╔╝██╔══██╗██╔════╝██╔══██╗██╔════╝██╔══██╗
140+
███╔╝ ███████║███████╗██████╔╝█████╗ ██████╔╝
141+
███╔╝ ██╔══██║╚════██║██╔═══╝ ██╔══╝ ██╔══██╗
142+
███████╗██║ ██║███████║██║ ███████╗██║ ██║
143+
╚══════╝╚═╝ ╚═╝╚══════╝╚═╝ ╚══════╝╚═╝ ╚═╝
144+
`)
145+
137146
go func() {
138147
if err := http.ListenAndServe(*port, corsOpts.Handler(router)); err != nil && err != http.ErrServerClosed {
139148
fmt.Printf("ListenAndServe(): %s\n", err)

0 commit comments

Comments
 (0)