Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

docs: Add readme with CONTRIBUTING.md guidelines#58

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Draft
dido18 wants to merge5 commits intomain
base:main
Choose a base branch
Loading
fromadd-readme-contributing
Draft
Show file tree
Hide file tree
Changes fromall commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
67 changes: 25 additions & 42 deletionsREADME.md
View file
Open in desktop
Original file line numberDiff line numberDiff line change
@@ -1,64 +1,47 @@
#Arduino App CLI
#arduino-app-cli

Choose a reason for hiding this comment

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

Suggested change
#arduino-app-cli
#Arduino App CLI

Use official product name.arduino-app-cli should only be used when referring to the command line invocation.


`arduino-app-cli` is a command line tool and a service running on Arduino UNO Q boards, that:

- manages and runs Arduino Apps on the board (both Linux and microcontroller parts)
- provides multiple APIs to perform actions and fetch data, used by the front-end (ArduinoAppsLab)
- auto-updates itself and other components

##Environment Variables
[![Test Go status](https://github.com/arduino/arduino-app-cli/actions/workflows/go-test.yml/badge.svg)](https://github.com/arduino/arduino-app-cli/actions/workflows/go-test.yml)

The following environment variables are used to configure`arduino-app-cli`:
##Docs

###Application Directories
For guidance on installation and development, see the[User documentation].

-**`ARDUINO_APP_CLI__APPS_DIR`** Path to the directory where Arduino Apps created by the user are stored.\
**Default:**`/home/arduino/ArduinoApps`
##Quickstart

-**`ARDUINO_APP_CLI__DATA_DIR`** Path to the directory where internal data is stored.\
**Default:**`/home/arduino/.local/share/arduino-app-cli`\
This folder contains:
-**`examples/`** default example Apps (_e.g._`/home/arduino/.local/share/arduino-app-cli/examples`)
-**`assets/`** contains a subfolder for each asset version (_e.g._`/home/arduino/.local/share/arduino-app-cli/assets/0.4.5`)
- Each asset folder includes:
-`bricks-list.yaml`
-`models-list.yaml`
-**other data** such as`properties.msgpack` containing variable values
// TODO

-**`ARDUINO_APP_BRICKS__CUSTOM_MODEL_DIR`** Path to the directory where custom models are stored.\
**Default:**`$HOME/.arduino-bricks/ei-models`\
(_e.g._`/home/arduino/.arduino-bricks/ei-models`)
##How to contribute

---
Contributions are welcome!

###Execution Settings
Please read the document[How to contribute] which will show you how to build the source code, run the tests, and

Choose a reason for hiding this comment

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

Suggested change
Please read thedocument[How to contribute] which will show you how to build the source code, run the tests, and
Please read the[Contributor Guide] document, which will show you how to build the source code, run the tests, and

See:

contribute your changes to the project.

-**`ARDUINO_APP_CLI__ALLOW_ROOT`** Allow running`arduino-app-cli` as root.\
**Default:**`false`**Not recommended to set to true.**
:sparkles: Thanks to all our[contributors]!:sparkles:

---
##Security

###External Services
If you think you found a vulnerability or other security-related bug in the Arduino CLI, please read our[security
policy] and report the bug to our Security Team 🛡️ Thank you!

-**`LIBRARIES_API_URL`** URL of the external service used to search libraries.\
**Default:**`https://api2.arduino.cc/libraries/v1/libraries`
e-mail contact:security@arduino.cc

---
##License

###Docker Settings
Arduino CLI is licensed under the GPL-3.0 license.

Choose a reason for hiding this comment

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

Suggested change
Arduino CLI is licensed under the GPL-3.0 license.
ArduinoAppCLI is licensed under the GPL-3.0 license.


-**`DOCKER_REGISTRY_BASE`** Docker registry used to pull images.\
**Default:**`ghcr.io/arduino/`
You can be released from the requirements of the above license by purchasing a commercial license. Buying such a license
is mandatory if you want to modify or otherwise use the software for commercial activities involving the Arduino
software without disclosing the source code of your own applications. To purchase a commercial license, send an email to
license@arduino.cc

-**`DOCKER_PYTHON_BASE_IMAGE`** Tag of the Docker image for the Python runner.\
**Default:**`app-bricks/python-apps-base:<RUNNER_VERSION>`

###App folder and persistent data

When running an app, persistent files will be saved in the`data` folder inside the app folder; other supporting files, including the Python venv are saved in the`.cache` folder inside the app folder.

###Docker images registry

Arduino Apps bricks might required a docker image, in that case the orchestrator will pull those from the registry configured with the`DOCKER_REGISTRY_BASE` environment variable. By default this points to an Arduino GitHub Container Registry (ghcr.io/arduino).

The only image that needs to be referenced directly is the base Python image (`DOCKER_PYTHON_BASE_IMAGE`), all other containers can be downloaded automatically by the orchestrator depending on the bricks specified as dependencies in the app.yml file.
[user documentation]:https://github.com/arduino/arduino-app-cli/docs/user-documentation.md
[how to contribute]:https://arduino.github.io/arduino-app-cli/latest/CONTRIBUTING/

Choose a reason for hiding this comment

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

Suggested change
[how to contribute]:https://arduino.github.io/arduino-app-cli/latest/CONTRIBUTING/
[contributor guide]:https://arduino.github.io/arduino-app-cli/latest/CONTRIBUTING/

This accompanies my suggestion above.

[security policy]:https://github.com/arduino/arduino-app-cli/security/policy
[contributors]:https://github.com/arduino/arduino-cli/graphs/contributors
25 changes: 25 additions & 0 deletionsdocs/CONTRIBUTING.md
View file
Open in desktop
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
<!-- Source: https://github.com/arduino/tooling-project-assets/blob/main/documentation-templates/contributor-guide/general/CONTRIBUTING.md -->

# Contributor Guide

Thanks for your interest in contributing to this project!

There are several ways you can get involved:

| Type of contribution | Contribution method |
| ----------------------------------------- | ---------------------------------------------------------------- |
| - Support<br/>- Question<br/>- Discussion | Post on the [**Arduino Forum**][forum] |
| - Bug report<br/>- Feature request | Issue report (see the guide [**here**][issues]) |
| Testing | Beta testing, PR review (see the guide [**here**][beta-testing]) |
| - Bug fix<br/>- Enhancement | Pull request (see the guide [**here**][prs]) |
| Monetary | [Buy official products][store] |

[forum]: https://forum.arduino.cc
[issues]: contributor-guide/issues.md#issue-report-guide
[beta-testing]: contributor-guide/beta-testing.md#beta-testing-guide
[prs]: contributor-guide/pull-requests.md#pull-request-guide
[store]: https://store.arduino.cc

## Resources

- [**Development Guide**](development.md#development-guide)
Binary file addeddocs/contributor-guide/assets/checks.png
View file
Open in desktop
Loading
Sorry, something went wrong.Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
34 changes: 34 additions & 0 deletionsdocs/contributor-guide/development.md
View file
Open in desktop
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
<!-- Source: https://github.com/arduino/tooling-project-assets/blob/main/documentation-templates/contributor-guide/other/development.md-->

#Development Guide

##Prerequisites

The following development tools must be available in your local environment:

-[Go](https://go.dev/dl/)
-[Taskfile](https://taskfile.dev/)

Choose a reason for hiding this comment

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

Suggested change
-[Taskfile](https://taskfile.dev/)
-[Task](https://taskfile.dev/)

The tool's name is "Task"

-[ddb client]//https://developer.android.com/tools/adb)[optionally]

Choose a reason for hiding this comment

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

Suggested change
-[ddb client]//https://developer.android.com/tools/adb)[optionally]
-[ddb client](https://developer.android.com/tools/adb)[optionally]

Fix markup.


##Building the Project

-`task init`

##Uploading the arduino-app-cli into the board
Connect an[Arduino UNO Q](https://www.arduino.cc/product-uno-q) board to the PC via USB.

Choose a reason for hiding this comment

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

Suggested change
Connect an[Arduino UNO Q](https://www.arduino.cc/product-uno-q) board to the PC via USB.
Connect an[Arduino UNO Q](https://docs.arduino.cc/hardware/uno-q/) board to the PC via USB.

From experience with the way the Arduino website is maintained, the previous URL is likely to stop working at some point in the future. The documentation pages are the most stable link targets (they typically only break when the URL changes after the product is retired).


-`task board:install` it installs the current`arduino-app-cli` inside the board (`adb` is needed). The password of the`ardiuno` username of the board is requested.

Choose a reason for hiding this comment

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

Suggested change
-`task board:install`itinstalls the current`arduino-app-cli` insidethe board (`adb` is needed). The password of the`ardiuno` username of the board is requested.
-`task board:install` installs the currentversion of Arduino App CLI onthe board (`adb` is needed). The password of the`arduino` username of the board is requested.
  • Grammar fixes
  • Use official product name
  • Correct username


##Running Checks

Checks and tests are set up to ensure the project content is functional and compliant with the established standards.

-`task fmt-check`
-`task test`

##Automatic Corrections

Tools are provided to automatically bring the project into compliance with some of the required checks.

-`task lint`
-`task fmt`
33 changes: 33 additions & 0 deletionsdocs/contributor-guide/issues.md
View file
Open in desktop
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
<!-- Source: https://github.com/arduino/tooling-project-assets/blob/main/documentation-templates/contributor-guide/general/contributor-guide/issues.md-->

#Issue Report Guide

---

❗ Do you need help or have a question about using this project? Support requests should be made to the[Arduino Forum](https://forum.arduino.cc).

---

High quality bug reports and feature requests are valuable contributions to this project. These can be made by submitting an issue report to the project's GitHub repository:

https://github.com/arduino/TODO_REPO_NAME/issues/new/choose

Choose a reason for hiding this comment

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

Suggested change
https://github.com/arduino/TODO_REPO_NAME/issues/new/choose
https://github.com/arduino/arduino-app-cli/issues/new/choose


##Before Reporting an Issue

- Give the latest development version a test drive to see if your issue was already resolved:<br />
<!-- TODO: Nightly build link-->
- Search[existing pull requests and issues](https://github.com/arduino/TODO_REPO_NAME/issues?q=) to see if it was already reported.<br />

Choose a reason for hiding this comment

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

Suggested change
- Search[existing pull requests and issues](https://github.com/arduino/TODO_REPO_NAME/issues?q=) to see if it was already reported.<br />
- Search[existing pull requests and issues](https://github.com/arduino/arduino-app-cli/issues?q=) to see if it was already reported.<br />

If you have additional information to provide about an existing issue, please comment there instead of creating a duplicate. You can use[GitHub's "Reactions" feature](https://github.blog/2016-03-10-add-reactions-to-pull-requests-issues-and-comments/) if you only want to express support 👍.

##Qualities of an Excellent Report

- Concise and descriptive issue title.<br />
Vague titles make it difficult to decipher the purpose of the issue when looking through the list of reports, which might result in your issue not being given proper attention.
- Describe the issue and what behavior you were expecting.<br />
Include the full and exact text of any relevant error or warning messages you might have encountered.
- Provide a full set of steps necessary to reproduce the issue.<br />
Demonstration code or commands should be complete and simplified to the minimum necessary to reproduce the issue.
- Be responsive.<br />
We may need you to provide additional information in order to investigate and resolve the issue.<br />
Make sure your GitHub account is configured so that you will receive notifications of responses to your issue report.
- If you find a solution to your problem, please comment on your issue report with an explanation of how you were able to fix it, then close the issue.
Loading
Loading

[8]ページ先頭

©2009-2025 Movatter.jp