Skip to content

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

Merged
merged 4 commits into from
Mar 26, 2019

Conversation

bridadan
Copy link
Contributor

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


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.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
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>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
<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:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
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.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
- `--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.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
- `--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
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
- 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
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
- 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
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
- 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
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
- 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).
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
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>).

@iriark01
Copy link
Contributor

@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!

@iriark01
Copy link
Contributor

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 development.

@iriark01 iriark01 merged commit 8fc7704 into ARMmbed:development Mar 26, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants