cmd/cloner: reduce diff noise when changing command

Spelling out the command to run for every type
means that changing the command makes for a large, repetitive diff.
Stop doing that.

Signed-off-by: Josh Bleecher Snyder <josh@tailscale.com>
This commit is contained in:
Josh Bleecher Snyder
2021-09-15 10:05:34 -07:00
committed by Josh Bleecher Snyder
parent 865d8c0d23
commit 4bbf5a8636
7 changed files with 31 additions and 41 deletions

View File

@@ -2,7 +2,8 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
// Code generated by tailscale.com/cmd/cloner -type User,Node,Hostinfo,NetInfo,Login,DNSConfig,RegisterResponse,DERPRegion,DERPMap,DERPNode; DO NOT EDIT.
// Code generated by the following command; DO NOT EDIT.
// tailscale.com/cmd/cloner -type User,Node,Hostinfo,NetInfo,Login,DNSConfig,RegisterResponse,DERPRegion,DERPMap,DERPNode
package tailcfg
@@ -27,8 +28,7 @@ func (src *User) Clone() *User {
return dst
}
// A compilation failure here means this code must be regenerated, with command:
// tailscale.com/cmd/cloner -type User,Node,Hostinfo,NetInfo,Login,DNSConfig,RegisterResponse,DERPRegion,DERPMap,DERPNode
// A compilation failure here means this code must be regenerated, with the command at the top of this file.
var _UserNeedsRegeneration = User(struct {
ID UserID
LoginName string
@@ -64,8 +64,7 @@ func (src *Node) Clone() *Node {
return dst
}
// A compilation failure here means this code must be regenerated, with command:
// tailscale.com/cmd/cloner -type User,Node,Hostinfo,NetInfo,Login,DNSConfig,RegisterResponse,DERPRegion,DERPMap,DERPNode
// A compilation failure here means this code must be regenerated, with the command at the top of this file.
var _NodeNeedsRegeneration = Node(struct {
ID NodeID
StableID StableNodeID
@@ -108,8 +107,7 @@ func (src *Hostinfo) Clone() *Hostinfo {
return dst
}
// A compilation failure here means this code must be regenerated, with command:
// tailscale.com/cmd/cloner -type User,Node,Hostinfo,NetInfo,Login,DNSConfig,RegisterResponse,DERPRegion,DERPMap,DERPNode
// A compilation failure here means this code must be regenerated, with the command at the top of this file.
var _HostinfoNeedsRegeneration = Hostinfo(struct {
IPNVersion string
FrontendLogID string
@@ -145,8 +143,7 @@ func (src *NetInfo) Clone() *NetInfo {
return dst
}
// A compilation failure here means this code must be regenerated, with command:
// tailscale.com/cmd/cloner -type User,Node,Hostinfo,NetInfo,Login,DNSConfig,RegisterResponse,DERPRegion,DERPMap,DERPNode
// A compilation failure here means this code must be regenerated, with the command at the top of this file.
var _NetInfoNeedsRegeneration = NetInfo(struct {
MappingVariesByDestIP opt.Bool
HairPinning opt.Bool
@@ -172,8 +169,7 @@ func (src *Login) Clone() *Login {
return dst
}
// A compilation failure here means this code must be regenerated, with command:
// tailscale.com/cmd/cloner -type User,Node,Hostinfo,NetInfo,Login,DNSConfig,RegisterResponse,DERPRegion,DERPMap,DERPNode
// A compilation failure here means this code must be regenerated, with the command at the top of this file.
var _LoginNeedsRegeneration = Login(struct {
_ structs.Incomparable
ID LoginID
@@ -213,8 +209,7 @@ func (src *DNSConfig) Clone() *DNSConfig {
return dst
}
// A compilation failure here means this code must be regenerated, with command:
// tailscale.com/cmd/cloner -type User,Node,Hostinfo,NetInfo,Login,DNSConfig,RegisterResponse,DERPRegion,DERPMap,DERPNode
// A compilation failure here means this code must be regenerated, with the command at the top of this file.
var _DNSConfigNeedsRegeneration = DNSConfig(struct {
Resolvers []dnstype.Resolver
Routes map[string][]dnstype.Resolver
@@ -239,8 +234,7 @@ func (src *RegisterResponse) Clone() *RegisterResponse {
return dst
}
// A compilation failure here means this code must be regenerated, with command:
// tailscale.com/cmd/cloner -type User,Node,Hostinfo,NetInfo,Login,DNSConfig,RegisterResponse,DERPRegion,DERPMap,DERPNode
// A compilation failure here means this code must be regenerated, with the command at the top of this file.
var _RegisterResponseNeedsRegeneration = RegisterResponse(struct {
User User
Login Login
@@ -264,8 +258,7 @@ func (src *DERPRegion) Clone() *DERPRegion {
return dst
}
// A compilation failure here means this code must be regenerated, with command:
// tailscale.com/cmd/cloner -type User,Node,Hostinfo,NetInfo,Login,DNSConfig,RegisterResponse,DERPRegion,DERPMap,DERPNode
// A compilation failure here means this code must be regenerated, with the command at the top of this file.
var _DERPRegionNeedsRegeneration = DERPRegion(struct {
RegionID int
RegionCode string
@@ -291,8 +284,7 @@ func (src *DERPMap) Clone() *DERPMap {
return dst
}
// A compilation failure here means this code must be regenerated, with command:
// tailscale.com/cmd/cloner -type User,Node,Hostinfo,NetInfo,Login,DNSConfig,RegisterResponse,DERPRegion,DERPMap,DERPNode
// A compilation failure here means this code must be regenerated, with the command at the top of this file.
var _DERPMapNeedsRegeneration = DERPMap(struct {
Regions map[int]*DERPRegion
OmitDefaultRegions bool
@@ -309,8 +301,7 @@ func (src *DERPNode) Clone() *DERPNode {
return dst
}
// A compilation failure here means this code must be regenerated, with command:
// tailscale.com/cmd/cloner -type User,Node,Hostinfo,NetInfo,Login,DNSConfig,RegisterResponse,DERPRegion,DERPMap,DERPNode
// A compilation failure here means this code must be regenerated, with the command at the top of this file.
var _DERPNodeNeedsRegeneration = DERPNode(struct {
Name string
RegionID int