mirror of
https://github.com/dragonheim/gagent.git
synced 2025-04-26 02:18:59 -07:00
cleanup: Started cleaning up the commenting format.
This commit is contained in:
parent
0de851e0e5
commit
b95d3950c5
10 changed files with 94 additions and 70 deletions
|
@ -12,8 +12,8 @@ import (
|
|||
)
|
||||
|
||||
/*
|
||||
Main is the entrypoint for the setup process
|
||||
*/
|
||||
* Main is the entrypoint for the setup process
|
||||
*/
|
||||
func Main(wg *sync.WaitGroup, config gs.GagentConfig) {
|
||||
log.Printf("[INFO] Starting setup\n")
|
||||
defer wg.Done()
|
||||
|
@ -31,13 +31,15 @@ func Main(wg *sync.WaitGroup, config gs.GagentConfig) {
|
|||
|
||||
clientBlock1 := rootBody.AppendNewBlock("client", []string{config.Name})
|
||||
clientBody1 := clientBlock1.Body()
|
||||
// clientBody1.AppendUnstructuredTokens(
|
||||
// hclwrite.TokensForTraversal(hcl.Traversal{
|
||||
// hcl.TraverseRoot{
|
||||
// Name: hcl.CommentGenerator("comment"),
|
||||
// },
|
||||
// },
|
||||
// ))
|
||||
/*
|
||||
* clientBody1.AppendUnstructuredTokens(
|
||||
* hclwrite.TokensForTraversal(hcl.Traversal{
|
||||
* hcl.TraverseRoot{
|
||||
* Name: hcl.CommentGenerator("comment"),
|
||||
* },
|
||||
* },
|
||||
* ))
|
||||
*/
|
||||
clientBody1.SetAttributeValue("clientid", cty.StringVal(config.UUID))
|
||||
rootBody.AppendNewline()
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue