-
Notifications
You must be signed in to change notification settings - Fork 178
Mbed CLI Collaborate section cleanup #1031
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
||
Like the `mbed import` command, you can specify which version to use by using `#` at the end of the URL followed by a commit hash, a branch name, or a tag name. If you do not provide any of these (nor the `#` character), the latest commit on the `master` branch will be used. | ||
|
||
The `mbed add` command will clone the repository specified, checkout to the correct version, and write the URL and _commit hash_ to a `.lib` file. Branches and tags can point to different commits over the lifetime of a repository, so to ensure the project's state is always reproducible, the commit hash is written to the `.lib` file. This `.lib` file should be committed to the project repository to track the dependency. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The `mbed add` command will clone the repository specified, checkout to the correct version, and write the URL and _commit hash_ to a `.lib` file. Branches and tags can point to different commits over the lifetime of a repository, so to ensure the project's state is always reproducible, the commit hash is written to the `.lib` file. This `.lib` file should be committed to the project repository to track the dependency. | |
The `mbed add` command clones the repository specified, check out to the correct version, and write the URL and _commit hash_ to a `.lib` file. Branches and tags can point to different commits over the lifetime of a repository, so to ensure the project's state is always reproducible, the commit hash is written to the `.lib` file. This `.lib` file should be committed to the project repository to track the dependency. |
@@ -121,14 +121,45 @@ $ mbed import https://github.com/ARMmbed/mbed-os-example-blinky#mbed-os-5.11.0 | |||
|
|||
You can specify which version to import using `#` followed by a commit hash, a branch name, or a tag name. If you do not provide any of these (nor the `#` character), the latest commit on the `master` branch will be imported. | |||
|
|||
A project's default name is the last part of the URL (excluding `#` and its value). In the example above, the imported program's project folder is `mbed-os-example-blinky`. To specify a different name, supply it as an extra positional argument in the import command. For example, to name your project `my-blinky`, run: | |||
A project's default name is the last part of the URL (excluding `#` and its value). In the example above, the imported program's project folder is `mbed-os-example-blinky`. To specify a different name, supply it as an extra positional argument in the `mbed import` command. For example, to name your project `my-blinky`, run: | |||
|
|||
``` | |||
$ mbed import https://github.com/ARMmbed/mbed-os-example-blinky#mbed-os-5.11.0 my-blinky | |||
``` | |||
|
|||
<span class="tips">**Tip**: Running `mbed import` within an existing program will result in an error. To add a library to an existing project, use the `mbed add` command.</span> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
<span class="tips">**Tip**: Running `mbed import` within an existing program will result in an error. To add a library to an existing project, use the `mbed add` command.</span> | |
<span class="tips">**Tip**: Running `mbed import` within an existing program will result in an error. To add a library to an existing project, use the `mbed add` command (reviewed below).</span> |
|
||
### Removing libraries | ||
|
||
Remove a library (and it's `.lib` file) from your project by supplying the path to the library to the `mbed remove` command. Continuing the example from above, run the following from your project directory to remove the library that was added previously: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove a library (and it's `.lib` file) from your project by supplying the path to the library to the `mbed remove` command. Continuing the example from above, run the following from your project directory to remove the library that was added previously: | |
To remove a library (and its `.lib` file) from your project, use the `mbed remove` command with the path to the library. Continuing the example above, run the following from your project directory to remove the library that you added previously: |
|
||
There are various options to `mbed sterm`: | ||
|
||
- `--port <serial port>` to specify system serial port to connect to. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- `--port <serial port>` to specify system serial port to connect to. | |
- `--port <serial port>` to specify a system serial port to connect to. |
There are various options to `mbed sterm`: | ||
|
||
- `--port <serial port>` to specify system serial port to connect to. | ||
- `--baudrate <numeric>` to select the communication baudrate, where the default value is 9600. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- `--baudrate <numeric>` to select the communication baudrate, where the default value is 9600. | |
- `--baudrate <numeric>` to select the communication baudrate; the default value is 9600. |
The following shortcuts are available within the serial terminal: | ||
|
||
- Ctrl+b - Send Break (reset target) | ||
- Ctrl+c - Exit terminal |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- Ctrl+c - Exit terminal | |
- <kbd>Ctrl</kbd>+<kbd>C</kbd> - Exit terminal |
|
||
- Ctrl+b - Send Break (reset target) | ||
- Ctrl+c - Exit terminal | ||
- Ctrl+e - Toggle local echo |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- Ctrl+e - Toggle local echo | |
- <kbd>Ctrl</kbd>+<kbd>E</kbd> - Toggle local echo |
- Ctrl+b - Send Break (reset target) | ||
- Ctrl+c - Exit terminal | ||
- Ctrl+e - Toggle local echo | ||
- Ctrl+h - Help |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- Ctrl+h - Help | |
- <kbd>Ctrl</kbd>+<kbd>H</kbd> - Help |
- Ctrl+c - Exit terminal | ||
- Ctrl+e - Toggle local echo | ||
- Ctrl+h - Help | ||
- Ctrl+t - Menu escape key |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- Ctrl+t - Menu escape key | |
- <kbd>Ctrl</kbd>+<kbd>T</kbd> - Menu escape key |
- Ctrl+h - Help | ||
- Ctrl+t - Menu escape key | ||
|
||
More shortcuts can be viewed within the serial terminal's help menu (Ctrl+h). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
More shortcuts can be viewed within the serial terminal's help menu (Ctrl+h). | |
More shortcuts can be viewed within the serial terminal's help menu (<kbd>Ctrl</kbd>+<kbd>H</kbd>). |
@bridadan since all my changes are minor language and formatting changes, I'm committing them and merging so I can make the 5.12 branch. Thank you for your help! |
Or... is this a fork? I don't have permission to push to the PR. Okay then; merging, then will manually do the changes in |
This removes some redundant entries from the Mbed CLI "Collaborate" page as well as moves some non-collaborative content out of said page and into more appropriate sections.
This is somewhat of a successor to #1030