Change "arch" into "platform" because it's more accurate.

Signed-off-by: Tom Chauveau <tom.chauveau@epitech.eu>
This commit is contained in:
Tom Chauveau
2021-11-05 16:21:21 +01:00
parent de6afee89c
commit a63c4e989a
12 changed files with 33 additions and 32 deletions

View File

@@ -235,7 +235,7 @@ func (w *Project) Save(ctx context.Context, st *State) error {
return nil
}
func (w *Project) Create(ctx context.Context, name string, plan Plan, arch string) (*State, error) {
func (w *Project) Create(ctx context.Context, name string, plan Plan, platform string) (*State, error) {
if _, err := w.Get(ctx, name); err == nil {
return nil, ErrExist
}
@@ -263,8 +263,8 @@ func (w *Project) Create(ctx context.Context, name string, plan Plan, arch strin
Plan: Plan{
Package: pkg,
},
Name: name,
Architecture: arch,
Name: name,
Platform: platform,
}
data, err := yaml.Marshal(st)