Juan Cruz Viotti
ec77437080
Print plugin warnings in red as other errors
...
For the sake of consistency.
2015-10-06 18:51:17 -04:00
Juan Cruz Viotti
d65882639a
Merge pull request #211 from resin-io/jviotti/feature/101/help-topics
...
Separate general help per topic relevance
2015-10-02 09:12:58 -04:00
Juan Cruz Viotti
f8470287c1
Separate general help per topic relevance
...
Only list primary commands by default, unless a `--verbose` option is
passed to list the additional ones.
Fixes: https://github.com/resin-io/resin-cli/issues/101
2015-10-02 08:50:32 -04:00
Juan Cruz Viotti
3cc41ed62a
Merge pull request #212 from resin-io/jviotti/fix/109/root-owner
...
Call os initialize as an elevated process
2015-10-01 14:08:19 -04:00
Juan Cruz Viotti
445e37ccaf
Call os initialize as an elevated process
...
Currently, the fact that `os initialize` requires elevated permissions
forced us to require calling commands that reuse it, such as `device
init` and `quickstart` with administrator permissions as well.
This ended up causing issues like saving images in the cache that belong
to root, or initializing git repositories that requires `sudo` to
commit.
The solution is to call `os initialize` as a child process preppending
`sudo` within `device init`.
Fixes: https://github.com/resin-io/resin-cli/issues/109
2015-10-01 13:07:53 -04:00
Juan Cruz Viotti
ed6427c541
Merge pull request #210 from resin-io/jviotti/feature/os-init-type
...
Make os initialize take a device type instead of a uuid
2015-09-30 15:59:58 -04:00
Juan Cruz Viotti
90be01b05d
Make os initialize take a device type instead of a uuid
2015-09-30 14:31:23 -04:00
Juan Cruz Viotti
1124293b9a
Merge pull request #209 from resin-io/jviotti/doc/update
...
Regenerate documentation
2015-09-30 14:30:43 -04:00
Juan Cruz Viotti
0e804fdfd8
Regenerate documentation
2015-09-30 12:07:44 -04:00
Juan Cruz Viotti
0443a35f2b
Merge pull request #207 from resin-io/jviotti/fix/promise-using
...
Fix incorrect Promise.using syntax
2015-09-30 12:06:51 -04:00
Juan Cruz Viotti
3a148217e0
Merge pull request #208 from resin-io/jviotti/fix/manifest-device-type
...
Send device type correctly to getManifestBySlug
2015-09-30 12:06:45 -04:00
Juan Cruz Viotti
79d1892b66
Send device type correctly to getManifestBySlug
...
Currently, we we're sending the wholea device object to
`getManifestBySlug`, which ended up in an unsupported device error.
2015-09-30 11:38:34 -04:00
Juan Cruz Viotti
0e06ac464f
Fix incorrect Promise.using syntax
...
`Promise.using` takes the function that acts on the resource as the
second argument, instead of as `.then()`.
2015-09-30 11:37:27 -04:00
Juan Cruz Viotti
5ae83d8337
Merge pull request #206 from resin-io/jviotti/fix/uncompress-os-download
...
Uncompress zip packages in os download
2015-09-30 10:48:36 -04:00
Juan Cruz Viotti
8694ee2c59
Merge pull request #205 from resin-io/jviotti/feature/rimraf-file-disposer
...
Use rimraf for deleting os temporary files
2015-09-30 10:31:46 -04:00
Juan Cruz Viotti
8234f7675a
Uncompress zip packages in os download
...
When downloading an operating system image, if the image is a zip
package, uncompress it automatically.
2015-09-30 10:16:24 -04:00
Juan Cruz Viotti
15cb0c4889
Use rimraf for deleting os temporary files
...
We already use `rimraf` for deleting os temporary directories, however
there are a few benefits of using it for files as well:
- Simplicity. We avoid having to check if a path is a file or directory.
- `rimraf` attempts to workaround the known Windows issues of anti
viruses not closing files. Described in more detail here: https://github.com/resin-io/resin-cli/blob/master/TROUBLESHOOTING.md#i-get-ebusy-errors-after-initializing-a-device-even-as-administrator-on-windows
2015-09-30 10:06:08 -04:00
Juan Cruz Viotti
a3ebd9827f
Merge pull request #204 from resin-io/jviotti/fix/console.info
...
Use console.info in os download
2015-09-30 10:05:19 -04:00
Juan Cruz Viotti
30d84f015a
Merge pull request #199 from resin-io/jviotti/feature/197/device-init-apps
...
Prompt for select application if running device init with no arguments
2015-09-29 15:31:59 -04:00
Juan Cruz Viotti
686414b03d
Merge pull request #198 from resin-io/jviotti/feature/temp-disposer
...
Use Promise.disposer() to make sure temp files are deleted
2015-09-29 15:25:09 -04:00
Juan Cruz Viotti
6377618c12
Use console.info in os download
...
`console.info` calls can be quieted by the `--quiet` option.
2015-09-29 15:15:39 -04:00
Juan Cruz Viotti
f17e9c97b8
Prompt for select application if running device init with no arguments
...
Currently, if `device init` was ran without an application argument, we
attempted to get the application name from the current directory, given
it was a git repository.
This approach led to confusions from time to time, so now we prompt the
user to select one of it's own applications from a dropdown instead of
checking the current directory in this edge case.
Fixes: https://github.com/resin-io/resin-cli/issues/197
2015-09-29 15:10:59 -04:00
Juan Cruz Viotti
21fcdfaff6
Use Promise.disposer() to make sure temp files are deleted
2015-09-29 15:08:24 -04:00
Juan Cruz Viotti
4072edcced
Merge pull request #203 from resin-io/jviotti/feature/os-initialize
...
Implement os initialize command
2015-09-29 14:59:59 -04:00
Juan Cruz Viotti
d704c10197
Implement os initialize command
...
This command initialized an operating system image with a disk device.
2015-09-29 14:52:34 -04:00
Juan Cruz Viotti
dea2a7f055
Merge pull request #202 from resin-io/jviotti/feature/device-register
...
Implement device register command
2015-09-29 14:41:03 -04:00
Juan Cruz Viotti
7e6eb4b9e4
Implement device register command
...
This command registers a new device with the passed application,
returning the new device uuid.
2015-09-29 14:33:31 -04:00
Juan Cruz Viotti
61474fba5c
Merge pull request #201 from resin-io/jviotti/feature/os-configure
...
Implement os configure
2015-09-29 14:26:03 -04:00
Juan Cruz Viotti
42256384be
Implement os configure
...
This command, given a path to an image and a device uuid, perform
configuration based on the resin-device-type manifests.
2015-09-29 13:47:10 -04:00
Juan Cruz Viotti
e25f232fe5
Merge pull request #200 from resin-io/jviotti/feature/os-download
...
Implement os download command
2015-09-29 13:11:24 -04:00
Juan Cruz Viotti
f6d8f12ba2
Implement os download command
...
This command download an unconfigured image to both the cache and to the
specified location by the `--output` option.
2015-09-29 13:03:14 -04:00
Juan Cruz Viotti
d2b9e6fd8c
Merge branch 'jviotti/doc/anti-virus-ebusy'
2015-09-21 09:28:13 -04:00
Juan Cruz Viotti
cf7effacc0
Document anti virus and EBUSY errors on Windows
2015-09-21 09:27:18 -04:00
Juan Cruz Viotti
1eb7aba293
Merge branch 'master' of https://github.com/resin-io/resin-cli
2015-09-21 09:25:57 -04:00
Juan Cruz Viotti
21e916679c
Update author email to @resin.io
2015-09-21 09:15:27 -04:00
Juan Cruz Viotti
d574743c21
Merge pull request #195 from resin-io/jviotti/docs/cygwin-to-troubleshooting
...
Move Cygwin caveat from README to TROUBLESHOOTING
2015-09-21 08:57:39 -04:00
Juan Cruz Viotti
d8a2b82662
Move Cygwin caveat from README to TROUBLESHOOTING
2015-09-21 08:51:54 -04:00
Juan Cruz Viotti
f4ebd890df
Merge pull request #194 from resin-io/jviotti/doc/troubleshooting
...
Add Troubleshooting guide
2015-09-21 08:47:14 -04:00
Juan Cruz Viotti
b0be5de83a
Add Troubleshooting guide
...
This guide described common Resin CLI issues and how to fix them.
2015-09-21 08:32:11 -04:00
Juan Cruz Viotti
ba21ddd010
Merge pull request #192 from resin-io/jviotti/doc/readme
...
Improve README.md
2015-09-21 08:01:44 -04:00
Juan Cruz Viotti
eecd7a0fd8
Improve README.md
...
- Make user oriented instead of developer oriented.
- Remove deprecated information.
- Add Requisites section.
- Add Getting Started section.
- Add Support section.
- Add License section.
2015-09-21 07:56:24 -04:00
Juan Cruz Viotti
eb4c2f62a7
Resin CLI v1.0.0
2015-09-11 21:21:44 +03:00
Juan Cruz Viotti
dc1e5e6512
Merge pull request #190 from resin-io/jviotti/message/await
...
Improve device awaiting message
2015-09-11 19:19:14 +03:00
Juan Cruz Viotti
adc0b183cd
Improve device awaiting message
...
Current message sounds too robotic.
2015-09-11 19:13:30 +03:00
Juan Cruz Viotti
828b4f73d1
Fix selecting existing application in quickstart
2015-09-11 18:30:30 +03:00
Juan Cruz Viotti
82a0761f49
Merge pull request #189 from resin-io/jviotti/feature/error-highlight
...
Highlight errors in red
2015-09-11 14:59:14 +03:00
Juan Cruz Viotti
904b9f07fb
Highlight errors in red
...
- Move error translation logic to resin-io/resin-cli-errors.
- Force `process.exit()`.
2015-09-11 14:47:38 +03:00
Juan Cruz Viotti
3c0acaa7da
Merge pull request #188 from resin-io/jviotti/feature/device-specs
...
Implement device specs. Fix #99
2015-09-11 13:10:44 +03:00
Juan Cruz Viotti
64c8420c9d
Implement device specs. Fix #99
...
Support for all devices. Tested in the following ones:
- Intel Edison.
- Raspberry Pi 2.
- Parallella.
2015-09-11 13:02:59 +03:00
Juan Cruz Viotti
26e3dc1aa7
Merge pull request #187 from resin-io/jviotti/feature/ignore-resinrc
...
Add resinrc.yml to gitignore
2015-09-08 09:31:40 +03:00