Selaa lähdekoodia

generator: Add generated file warning to main

Signed-off-by: Anatole Denis <anatole@unverle.fr>
Anatole Denis 5 vuotta sitten
vanhempi
sitoutus
785c35f3f8
2 muutettua tiedostoa jossa 7 lisäystä ja 0 poistoa
  1. 4 0
      cmds/coredhcp-generator/coredhcp.go.template
  2. 3 0
      cmds/coredhcp/main.go

+ 4 - 0
cmds/coredhcp-generator/coredhcp.go.template

@@ -2,6 +2,10 @@
 // This source code is licensed under the MIT license found in the
 // LICENSE file in the root directory of this source tree.
 
+{{/* This file is the template source. The following comment obviously doesn't apply here */ -}}
+// This is a generated file, edits should be made in the corresponding source file
+// And this file regenerated using `coredhcp-generator -from core-plugins.txt`
+
 package main
 
 import (

+ 3 - 0
cmds/coredhcp/main.go

@@ -2,6 +2,9 @@
 // This source code is licensed under the MIT license found in the
 // LICENSE file in the root directory of this source tree.
 
+// This is a generated file, edits should be made in the corresponding source file
+// And this file regenerated using `coredhcp-generator -from core-plugins.txt`
+
 package main
 
 import (