(platformName string)
| 127 | } |
| 128 | |
| 129 | func (c *Celer) SetPlatform(platformName string) error { |
| 130 | if err := c.readOrCreate(); err != nil { |
| 131 | return err |
| 132 | } |
| 133 | |
| 134 | // Init and setup. |
| 135 | if err := c.platform.Init(platformName); err != nil { |
| 136 | return err |
| 137 | } |
| 138 | c.Main.Platform = platformName |
| 139 | c.platform.Name = platformName |
| 140 | |
| 141 | if err := c.save(); err != nil { |
| 142 | return err |
| 143 | } |
| 144 | |
| 145 | return nil |
| 146 | } |
| 147 | |
| 148 | func (c *Celer) SetProject(projectName string) error { |
| 149 | if err := c.readOrCreate(); err != nil { |