Skip to content

Commit

Permalink
misc
Browse files Browse the repository at this point in the history
  • Loading branch information
barrett370 committed Feb 11, 2024
1 parent 3506ec1 commit 97e5d76
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 8 deletions.
15 changes: 11 additions & 4 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,20 +2,27 @@ package main

import (
"encoding/json"
"fmt"
"flag"
"os"

"github.com/barrett370/norton2bitwarden/formats"
)

var (
inputFile string
outputFile string
)

func main() {
passwords, err := formats.DecodeNortonExport("./test.csv")
flag.StringVar(&inputFile, "input", "input.csv", "norton password export")
flag.StringVar(&outputFile, "output", "output.json", "file to write bitwarden json to")
flag.Parse()
passwords, err := formats.DecodeNortonExport(inputFile)
if err != nil {
panic(err)
}
fmt.Printf("%+v\n", passwords)

out, err := os.Create("out.json")
out, err := os.Create(outputFile)
if err != nil {
panic(err)
}
Expand Down
1 change: 0 additions & 1 deletion out.json

This file was deleted.

3 changes: 0 additions & 3 deletions test.csv

This file was deleted.

0 comments on commit 97e5d76

Please sign in to comment.