...
This commit is contained in:
@@ -8,7 +8,6 @@ pub const version = '1.0.0'
|
||||
const singleton = false
|
||||
const default = true
|
||||
|
||||
// TODO: THIS IS EXAMPLE CODE AND NEEDS TO BE CHANGED IN LINE TO STRUCT BELOW, IS STRUCTURED AS HEROSCRIPT
|
||||
pub fn heroscript_default() !string {
|
||||
heroscript := "
|
||||
!!meilisearch.configure
|
||||
@@ -19,7 +18,6 @@ pub fn heroscript_default() !string {
|
||||
return heroscript
|
||||
}
|
||||
|
||||
// THIS THE THE SOURCE OF THE INFORMATION OF THIS FILE, HERE WE HAVE THE CONFIG OBJECT CONFIGURED AND MODELLED
|
||||
|
||||
pub struct MeilisearchClient {
|
||||
pub mut:
|
||||
@@ -29,7 +27,6 @@ pub mut:
|
||||
}
|
||||
|
||||
fn cfg_play(p paramsparser.Params) ! {
|
||||
// THIS IS EXAMPLE CODE AND NEEDS TO BE CHANGED IN LINE WITH struct above
|
||||
mut mycfg := MeilisearchClient{
|
||||
name: p.get_default('name', 'default')!
|
||||
host: p.get('host')!
|
||||
|
||||
Reference in New Issue
Block a user