Skip to content

Commit

Permalink
Update packman.go
Browse files Browse the repository at this point in the history
  • Loading branch information
matang28 authored Jun 13, 2021
1 parent e1d9fcc commit f957697
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions pkg/packman.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,21 @@ package packman

import (
"encoding/json"
"github.com/AdikaStyle/packman/internal"
"io/ioutil"
"os"
)

const PackageNameFlag = "package_name"
const PackagePathFlag = "package_path"
const PackageNameFlag = internal.PackageName
const PackagePathFlag = internal.PackagePath

func Unpack(remote, path string, flagsMap map[string]string) error {
return internal.M.TemplatingService.Unpack(remote, path, flagsMap)
}

func Auth(username, password string) error {
return internal.M.ConfigService.SetAuth(username, password)
}

func ReadFlags() map[string]string {
var out map[string]string
Expand Down

0 comments on commit f957697

Please sign in to comment.