Jobs & Workflows https://armen.surge.sh
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

35 lines
968 B

/*
------------------------------------------------------------------------------------------------------------------------
####### cli ####### Copyright (c) 2021 mls-361 ##################################################### MIT License #######
------------------------------------------------------------------------------------------------------------------------
*/
package cli
import (
"fmt"
"forge.chapril.org/armen/jw"
"forge.chapril.org/armen/requestor"
"forge.chapril.org/armen/armen/internal/components"
)
func newRequestor(ccs *components.Components) (jw.Model, error) {
cfg := ccs.Config.Server()
endpoint := &requestor.Endpoint{
URL: fmt.Sprintf("http://localhost:%d", cfg.Port),
}
rc := &requestor.Config{
Logger: ccs.Logger,
Endpoints: []*requestor.Endpoint{endpoint},
}
return requestor.New(rc)
}
/*
######################################################################################################## @(°_°)@ #######
*/