Skip to content

Commit 36dd757

Browse files
committed
add: fix typo
1 parent 05ab015 commit 36dd757

2 files changed

Lines changed: 13 additions & 13 deletions

File tree

cli/action/dsk.go

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ type Action struct {
155155
options Options
156156
desc DskDescriptor
157157
fd AmsdosFileDescriptor
158-
actions *DskTasks
158+
tasks *DskTasks
159159
}
160160

161161
func (a Action) DskIsSet() bool {
@@ -186,13 +186,13 @@ func NewAction(paths ...string) *Action {
186186
}
187187
}
188188
return &Action{
189-
Path: path,
190-
actions: NewDskTasks(),
189+
Path: path,
190+
tasks: NewDskTasks(),
191191
}
192192
}
193193

194194
func (a *Action) WithDskActions(actions *DskTasks) *Action {
195-
a.actions = actions
195+
a.tasks = actions
196196
return a
197197
}
198198

@@ -201,7 +201,7 @@ func (a *Action) DoDskActions() (onError bool, message, hint string) {
201201
if onError {
202202
return onError, message, hint
203203
}
204-
for _, action := range a.actions.a {
204+
for _, action := range a.tasks.a {
205205
switch action.a {
206206
case ActionFormatDsk:
207207
onError, message, hint = FormatDsk(a.Path, a.desc, a.options.vendorFormat, a.options.dataFormat, a.options.force)
@@ -295,7 +295,7 @@ func (a *Action) DoFileActions() (onError bool, message, hint string) {
295295

296296
}
297297

298-
for _, action := range a.actions.a {
298+
for _, action := range a.tasks.a {
299299
switch action.a {
300300
case ActionDisplayHexaFileDsk:
301301
fmt.Println(dsk.DisplayHex(content, 16))

cli/action/sna.go

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ type SnaAction struct {
2525
CPCType int
2626
Version int
2727
Screenmode int
28-
actions []SnaTask
28+
tasks []SnaTask
2929
}
3030

3131
func NewSnaAction(snapath string) *SnaAction {
@@ -60,30 +60,30 @@ func (s *SnaAction) WithScreemode(m int) *SnaAction {
6060
}
6161

6262
func (s *SnaAction) WithSnaInfoAction(isSet bool) *SnaAction {
63-
s.actions = append(s.actions, SnaInfoAction)
63+
s.tasks = append(s.tasks, SnaInfoAction)
6464
return s
6565
}
6666

6767
func (s *SnaAction) WithSnaFormatAction(isSet bool) *SnaAction {
68-
s.actions = append(s.actions, SnaFormatAction)
68+
s.tasks = append(s.tasks, SnaFormatAction)
6969
return s
7070
}
7171

7272
func (s *SnaAction) WithSnaHexaListAction(isSet bool) *SnaAction {
73-
s.actions = append(s.actions, SnaHexaListAction)
73+
s.tasks = append(s.tasks, SnaHexaListAction)
7474
return s
7575
}
7676
func (s *SnaAction) WithSnaPutAction(isSet bool) *SnaAction {
77-
s.actions = append(s.actions, SnaPutAction)
77+
s.tasks = append(s.tasks, SnaPutAction)
7878
return s
7979
}
8080
func (s *SnaAction) WithSnaGetAction(isSet bool) *SnaAction {
81-
s.actions = append(s.actions, SnaGetAction)
81+
s.tasks = append(s.tasks, SnaGetAction)
8282
return s
8383
}
8484

8585
func (s *SnaAction) DoSnaActions() (onError bool, message, hint string) {
86-
for _, task := range s.actions {
86+
for _, task := range s.tasks {
8787
switch task {
8888
case SnaInfoAction:
8989
return InfoSna(s.Path)

0 commit comments

Comments
 (0)