@@ -78,31 +78,31 @@ func (c *createPluginStrategy) buildTask() []tasks.Task {
78
78
taskSlice := make ([]tasks.Task , 0 )
79
79
taskSlice = append (taskSlice ,
80
80
& tasks.CreateFileFromStrTemplateTask {
81
- SourceStr : CPFT_MAIN_GO ,
81
+ SourceStr : CPFTMAINGO ,
82
82
OutputFile : fmt .Sprintf ("%s/main.go" , c .projectPath ),
83
83
ReplaceKeyPairs : map [string ]string {
84
84
types .TagProjectName : c .projName ,
85
85
types .TagProjectPath : goprojpath ,
86
86
},
87
87
},
88
88
& tasks.CreateFileFromStrTemplateTask {
89
- SourceStr : CPFT_CFG_TOML ,
89
+ SourceStr : CPFTCFGTOML ,
90
90
OutputFile : fmt .Sprintf ("%s/%s.toml" , c .projectPath , c .projName ),
91
91
ReplaceKeyPairs : map [string ]string {
92
92
types .TagProjectName : c .projName ,
93
93
},
94
94
},
95
95
& tasks.CreateFileFromStrTemplateTask {
96
- SourceStr : CPFT_RUNMAIN ,
97
- BlockStrBegin : CPFT_RUNMAIN_BLOCK + "`" ,
96
+ SourceStr : CPFTRUNMAIN ,
97
+ BlockStrBegin : CPFTRUNMAINBLOCK + "`" ,
98
98
BlockStrEnd : "`" ,
99
99
OutputFile : fmt .Sprintf ("%s/%s.go" , c .projectPath , c .projName ),
100
100
ReplaceKeyPairs : map [string ]string {
101
101
types .TagProjectName : c .projName ,
102
102
},
103
103
},
104
104
& tasks.CreateFileFromStrTemplateTask {
105
- SourceStr : CPFT_MAKEFILE ,
105
+ SourceStr : CPFTMAKEFILE ,
106
106
OutputFile : fmt .Sprintf ("%s/Makefile" , c .projectPath ),
107
107
ReplaceKeyPairs : map [string ]string {
108
108
types .TagProjectName : c .projName ,
@@ -112,36 +112,36 @@ func (c *createPluginStrategy) buildTask() []tasks.Task {
112
112
},
113
113
},
114
114
& tasks.CreateFileFromStrTemplateTask {
115
- SourceStr : CPFT_TRAVIS_YML ,
115
+ SourceStr : CPFTTRAVISYML ,
116
116
OutputFile : fmt .Sprintf ("%s/.travis.yml" , c .projectPath ),
117
117
ReplaceKeyPairs : map [string ]string {
118
118
types .TagProjectName : c .projName ,
119
119
},
120
120
},
121
121
& tasks.CreateFileFromStrTemplateTask {
122
- SourceStr : CPFT_PLUGIN_TOML ,
122
+ SourceStr : CPFTPLUGINTOML ,
123
123
OutputFile : fmt .Sprintf ("%s/plugin/plugin.toml" , c .projectPath ),
124
124
ReplaceKeyPairs : map [string ]string {
125
125
types .TagProjectName : c .projName ,
126
126
},
127
127
},
128
128
& tasks.CreateFileFromStrTemplateTask {
129
- SourceStr : CPFT_CLI_MAIN ,
129
+ SourceStr : CPFTCLIMAIN ,
130
130
OutputFile : fmt .Sprintf ("%s/cli/main.go" , c .projectPath ),
131
131
ReplaceKeyPairs : map [string ]string {
132
132
types .TagProjectName : c .projName ,
133
133
types .TagProjectPath : goprojpath ,
134
134
},
135
135
},
136
136
& tasks.CreateFileFromStrTemplateTask {
137
- SourceStr : CPFT_DAPP_COMMANDS ,
137
+ SourceStr : CPFTDAPPCOMMANDS ,
138
138
OutputFile : fmt .Sprintf ("%s/plugin/dapp/%s/commands/cmd.go" , c .projectPath , c .execName ),
139
139
ReplaceKeyPairs : map [string ]string {
140
140
types .TagProjectName : c .projName ,
141
141
},
142
142
},
143
143
& tasks.CreateFileFromStrTemplateTask {
144
- SourceStr : CPFT_DAPP_PLUGIN ,
144
+ SourceStr : CPFTDAPPPLUGIN ,
145
145
OutputFile : fmt .Sprintf ("%s/plugin/dapp/%s/plugin.go" , c .projectPath , c .projName ),
146
146
ReplaceKeyPairs : map [string ]string {
147
147
types .TagProjectName : c .projName ,
@@ -150,7 +150,7 @@ func (c *createPluginStrategy) buildTask() []tasks.Task {
150
150
},
151
151
},
152
152
& tasks.CreateFileFromStrTemplateTask {
153
- SourceStr : CPFT_DAPP_EXEC ,
153
+ SourceStr : CPFTDAPPEXEC ,
154
154
OutputFile : fmt .Sprintf ("%s/plugin/dapp/%s/executor/%s.go" , c .projectPath , c .projName , c .execName ),
155
155
ReplaceKeyPairs : map [string ]string {
156
156
types .TagProjectName : c .projName ,
@@ -159,24 +159,24 @@ func (c *createPluginStrategy) buildTask() []tasks.Task {
159
159
},
160
160
},
161
161
& tasks.CreateFileFromStrTemplateTask {
162
- SourceStr : CPFT_DAPP_CREATEPB ,
162
+ SourceStr : CPFTDAPPCREATEPB ,
163
163
OutputFile : fmt .Sprintf ("%s/plugin/dapp/%s/proto/create_protobuf.sh" , c .projectPath , c .projName ),
164
164
ReplaceKeyPairs : map [string ]string {},
165
165
},
166
166
& tasks.CreateFileFromStrTemplateTask {
167
- SourceStr : CPFT_DAPP_MAKEFILE ,
167
+ SourceStr : CPFTDAPPMAKEFILE ,
168
168
OutputFile : fmt .Sprintf ("%s/plugin/dapp/%s/proto/Makefile" , c .projectPath , c .projName ),
169
169
ReplaceKeyPairs : map [string ]string {},
170
170
},
171
171
& tasks.CreateFileFromStrTemplateTask {
172
- SourceStr : CPFT_DAPP_PROTO ,
172
+ SourceStr : CPFTDAPPPROTO ,
173
173
OutputFile : fmt .Sprintf ("%s/plugin/dapp/%s/proto/%s.proto" , c .projectPath , c .projName , c .execName ),
174
174
ReplaceKeyPairs : map [string ]string {
175
175
types .TagActionName : c .classActionName ,
176
176
},
177
177
},
178
178
& tasks.CreateFileFromStrTemplateTask {
179
- SourceStr : CPFT_DAPP_TYPEFILE ,
179
+ SourceStr : CPFTDAPPTYPEFILE ,
180
180
OutputFile : fmt .Sprintf ("%s/plugin/dapp/%s/types/types.go" , c .projectPath , c .projName ),
181
181
ReplaceKeyPairs : map [string ]string {
182
182
types .TagExecNameFB : c .execNameFB ,
0 commit comments