Skip to content

Commit

Permalink
Move main.go back to root
Browse files Browse the repository at this point in the history
  • Loading branch information
aymanbagabas committed Oct 13, 2021
1 parent bafd57b commit 331c3bb
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 20 deletions.
6 changes: 3 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
cmd/soft/soft
cmd/soft/.ssh
cmd/soft/.repos
soft
.ssh
.repos
17 changes: 0 additions & 17 deletions cmd/soft/main.go

This file was deleted.

18 changes: 18 additions & 0 deletions main.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
package main

import (
"log"

"github.com/charmbracelet/soft/config"
"github.com/charmbracelet/soft/server"
)

func main() {
cfg := config.DefaultConfig()
s := server.NewServer(cfg)
log.Printf("Starting SSH server on %s:%d\n", cfg.Host, cfg.Port)
err := s.Start()
if err != nil {
log.Fatalln(err)
}
}

0 comments on commit 331c3bb

Please sign in to comment.