File tree 14 files changed +14
-14
lines changed
14 files changed +14
-14
lines changed Original file line number Diff line number Diff line change @@ -54,7 +54,7 @@ func initCreateCommand() *cobra.Command {
54
54
}
55
55
56
56
func runCreateCommand (cmd * cobra.Command , args []string ) {
57
- logrus .Infof ("Creating dashboard from template %s\n " , createFlags .template )
57
+ logrus .Infof ("Creating dashboard from template %s" , createFlags .template )
58
58
59
59
params := & dashboard.CreateParams {
60
60
Template : createFlags .template ,
Original file line number Diff line number Diff line change @@ -44,7 +44,7 @@ func initDeleteCommand() *cobra.Command {
44
44
}
45
45
46
46
func runDeleteCommand (cmd * cobra.Command , args []string ) {
47
- logrus .Infof ("Deleting dashboard %s\n " , deleteFlags .id )
47
+ logrus .Infof ("Deleting dashboard %s" , deleteFlags .id )
48
48
49
49
params := & dashboard.DeleteParams {ID : deleteFlags .id }
50
50
err := dashboard .Delete (params )
Original file line number Diff line number Diff line change @@ -54,7 +54,7 @@ func initExtractCommand() *cobra.Command {
54
54
}
55
55
56
56
func runExtractCommand (cmd * cobra.Command , args []string ) {
57
- logrus .Infof ("Extracting template from dashboard %s\n " , extractFlags .id )
57
+ logrus .Infof ("Extracting template from dashboard %s" , extractFlags .id )
58
58
59
59
params := & dashboard.ExtractParams {
60
60
ID : extractFlags .id ,
Original file line number Diff line number Diff line change @@ -49,7 +49,7 @@ func initCreateCommand() *cobra.Command {
49
49
}
50
50
51
51
func runCreateCommand (cmd * cobra.Command , args []string ) {
52
- logrus .Infof ("Creating device with name %s\n " , createFlags .name )
52
+ logrus .Infof ("Creating device with name %s" , createFlags .name )
53
53
54
54
params := & device.CreateParams {
55
55
Name : createFlags .name ,
Original file line number Diff line number Diff line change @@ -52,7 +52,7 @@ func initDeleteCommand() *cobra.Command {
52
52
}
53
53
54
54
func runDeleteCommand (cmd * cobra.Command , args []string ) {
55
- logrus .Infof ("Deleting device %s\n " , deleteFlags .id )
55
+ logrus .Infof ("Deleting device %s" , deleteFlags .id )
56
56
57
57
params := & device.DeleteParams {Tags : deleteFlags .tags }
58
58
if deleteFlags .id != "" {
Original file line number Diff line number Diff line change @@ -52,7 +52,7 @@ func InitCreateTagsCommand() *cobra.Command {
52
52
}
53
53
54
54
func runCreateTagsCommand (cmd * cobra.Command , args []string ) {
55
- logrus .Infof ("Creating tags on device %s\n " , createTagsFlags .id )
55
+ logrus .Infof ("Creating tags on device %s" , createTagsFlags .id )
56
56
57
57
params := & tag.CreateTagsParams {
58
58
ID : createTagsFlags .id ,
Original file line number Diff line number Diff line change @@ -49,7 +49,7 @@ func InitDeleteTagsCommand() *cobra.Command {
49
49
}
50
50
51
51
func runDeleteTagsCommand (cmd * cobra.Command , args []string ) {
52
- logrus .Infof ("Deleting tags with keys %s\n " , deleteTagsFlags .keys )
52
+ logrus .Infof ("Deleting tags with keys %s" , deleteTagsFlags .keys )
53
53
54
54
params := & tag.DeleteTagsParams {
55
55
ID : deleteTagsFlags .id ,
Original file line number Diff line number Diff line change @@ -47,7 +47,7 @@ func initBindCommand() *cobra.Command {
47
47
}
48
48
49
49
func runBindCommand (cmd * cobra.Command , args []string ) {
50
- logrus .Infof ("Binding thing %s to device %s\n " , bindFlags .id , bindFlags .deviceID )
50
+ logrus .Infof ("Binding thing %s to device %s" , bindFlags .id , bindFlags .deviceID )
51
51
52
52
params := & thing.BindParams {
53
53
ID : bindFlags .id ,
Original file line number Diff line number Diff line change @@ -49,7 +49,7 @@ func initCloneCommand() *cobra.Command {
49
49
}
50
50
51
51
func runCloneCommand (cmd * cobra.Command , args []string ) {
52
- logrus .Infof ("Cloning thing %s into a new thing called %s\n " , cloneFlags .cloneID , cloneFlags .name )
52
+ logrus .Infof ("Cloning thing %s into a new thing called %s" , cloneFlags .cloneID , cloneFlags .name )
53
53
54
54
params := & thing.CloneParams {
55
55
Name : cloneFlags .name ,
Original file line number Diff line number Diff line change @@ -54,7 +54,7 @@ func initCreateCommand() *cobra.Command {
54
54
}
55
55
56
56
func runCreateCommand (cmd * cobra.Command , args []string ) {
57
- logrus .Infof ("Creating thing from template %s\n " , createFlags .template )
57
+ logrus .Infof ("Creating thing from template %s" , createFlags .template )
58
58
59
59
params := & thing.CreateParams {
60
60
Template : createFlags .template ,
Original file line number Diff line number Diff line change @@ -52,7 +52,7 @@ func initDeleteCommand() *cobra.Command {
52
52
}
53
53
54
54
func runDeleteCommand (cmd * cobra.Command , args []string ) {
55
- logrus .Infof ("Deleting thing %s\n " , deleteFlags .id )
55
+ logrus .Infof ("Deleting thing %s" , deleteFlags .id )
56
56
57
57
params := & thing.DeleteParams {Tags : deleteFlags .tags }
58
58
if deleteFlags .id != "" {
Original file line number Diff line number Diff line change @@ -54,7 +54,7 @@ func initExtractCommand() *cobra.Command {
54
54
}
55
55
56
56
func runExtractCommand (cmd * cobra.Command , args []string ) {
57
- logrus .Infof ("Extracting template from thing %s\n " , extractFlags .id )
57
+ logrus .Infof ("Extracting template from thing %s" , extractFlags .id )
58
58
59
59
params := & thing.ExtractParams {
60
60
ID : extractFlags .id ,
Original file line number Diff line number Diff line change @@ -52,7 +52,7 @@ func InitCreateTagsCommand() *cobra.Command {
52
52
}
53
53
54
54
func runCreateTagsCommand (cmd * cobra.Command , args []string ) {
55
- logrus .Infof ("Creating tags on thing %s\n " , createTagsFlags .id )
55
+ logrus .Infof ("Creating tags on thing %s" , createTagsFlags .id )
56
56
57
57
params := & tag.CreateTagsParams {
58
58
ID : createTagsFlags .id ,
Original file line number Diff line number Diff line change @@ -49,7 +49,7 @@ func InitDeleteTagsCommand() *cobra.Command {
49
49
}
50
50
51
51
func runDeleteTagsCommand (cmd * cobra.Command , args []string ) {
52
- logrus .Infof ("Deleting tags with keys %s\n " , deleteTagsFlags .keys )
52
+ logrus .Infof ("Deleting tags with keys %s" , deleteTagsFlags .keys )
53
53
54
54
params := & tag.DeleteTagsParams {
55
55
ID : deleteTagsFlags .id ,
You can’t perform that action at this time.
0 commit comments