Skip to content

Commit

Permalink
upd
Browse files Browse the repository at this point in the history
  • Loading branch information
kkga committed Sep 7, 2021
1 parent 43697b1 commit 6639346
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions main.go
Original file line number Diff line number Diff line change
@@ -1,13 +1,17 @@
package main

import (
_ "embed"
"flag"
"fmt"
"kks/cmd"
"os"
"strings"
)

//go:embed init.kak
var initStr string

type KakContext struct {
session string
client string
Expand Down Expand Up @@ -46,6 +50,8 @@ func main() {
case "env":
context := getContext()
cmd.Env(context.session, context.client)
case "init":
fmt.Print(initStr)
default:
printHelp()
os.Exit(2)
Expand Down Expand Up @@ -111,6 +117,10 @@ func getContext() *KakContext {
return &c
}

func printInit() {

}

func printHelp() {
fmt.Println("Handy Kakoune companion.")
fmt.Println()
Expand Down

0 comments on commit 6639346

Please sign in to comment.