Skip to content

Commit

Permalink
fix: .gitignore
Browse files Browse the repository at this point in the history
  • Loading branch information
Gornak40 committed Nov 22, 2023
1 parent 493502e commit c58cc0f
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 3 deletions.
5 changes: 2 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,5 @@

# Go workspace file
go.work
ejik
config/config.json
valeria
/ejik
/valeria
28 changes: 28 additions & 0 deletions cmd/valeria/main.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
package main

import (
"os"

"github.com/Gornak40/algolymp/config"
"github.com/Gornak40/algolymp/polygon"
"github.com/akamensky/argparse"
"github.com/sirupsen/logrus"
)

func main() {
parser := argparse.NewParser("valeria", "Polygon valuer builder")
pID := parser.Int("i", "problem_id", &argparse.Options{
Required: true,
Help: "Polygon problem ID",
})
if err := parser.Parse(os.Args); err != nil {
logrus.WithError(err).Fatal("bad arguments")
}

cfg := config.NewConfig()
pClient := polygon.NewPolygon(&cfg.Polygon)

if err := pClient.GetValuer(*pID); err != nil {
logrus.WithError(err).Fatal("failed get groups")
}
}

0 comments on commit c58cc0f

Please sign in to comment.