mirror of https://github.com/01-edu/public.git
2 changed files with 90 additions and 0 deletions
@ -0,0 +1,45 @@ |
|||||||
|
## Introduction |
||||||
|
|
||||||
|
### Instructions |
||||||
|
|
||||||
|
#### 1- get-ready |
||||||
|
|
||||||
|
Create in your github account the repository named `piscine-go`. |
||||||
|
|
||||||
|
Once created, clone that repository on your desktop. |
||||||
|
If your github username was `kigiri` this is the command that will need to be used : |
||||||
|
|
||||||
|
`git clone https://github.com/kigiri/piscine-go` |
||||||
|
|
||||||
|
This command needs to be adapted with **your own github username**. |
||||||
|
|
||||||
|
This repository will be the folder where all the exercices must be submitted. |
||||||
|
|
||||||
|
#### 2- set |
||||||
|
|
||||||
|
Once the repository is properly created, write your first shell program called `hello.sh` |
||||||
|
|
||||||
|
When executed this program must print `hello {username}!` |
||||||
|
Where `{username}` is your GitHub username |
||||||
|
|
||||||
|
##### Usage |
||||||
|
|
||||||
|
If the `{username}` is `kigiri` : |
||||||
|
|
||||||
|
```console |
||||||
|
user@host:~/piscine$ ./hello.sh |
||||||
|
Hello kigiri! |
||||||
|
user@host:~/piscine$ |
||||||
|
``` |
||||||
|
|
||||||
|
#### 3- go-say-hello |
||||||
|
|
||||||
|
After that the `hello.sh` is executing properly, it needs to be uploaded to the repository with the following commands : |
||||||
|
|
||||||
|
1. `git add hello.sh` |
||||||
|
2. `git commit -m "My very first commit"` |
||||||
|
3. `git push origin master` |
||||||
|
|
||||||
|
Once these steps are executed properly, the file can now be submitted for grading on the platform by clicking on the `submit` button. |
||||||
|
|
||||||
|
This action will run the tests on your submitted `hello.sh` file. |
@ -0,0 +1,45 @@ |
|||||||
|
## Introduction |
||||||
|
|
||||||
|
### Instructions |
||||||
|
|
||||||
|
#### 1- get-ready |
||||||
|
|
||||||
|
Créer dans votre `compte github` le répository nommé `piscine-go`. |
||||||
|
|
||||||
|
Une fois créé, cloner ce répository sur votre desktop. |
||||||
|
Si votre `github username` était `kigiri` voici la commande qui devrait être utilisé : |
||||||
|
|
||||||
|
`git clone https://github.com/kigiri/piscine-go` |
||||||
|
|
||||||
|
Cette commande doit être adaptée avec **votre propre github username**. |
||||||
|
|
||||||
|
Ce repository sera le dossier où tous les exercises doivent être uploadés. |
||||||
|
|
||||||
|
#### 2- set |
||||||
|
|
||||||
|
Une fois que le répository est créé, écrire votre premier programme shell nommé `hello.sh` |
||||||
|
|
||||||
|
Quand ce programme est éxécuté il doit afficher `hello {username}!` |
||||||
|
Où `{username}` est votre `github username` |
||||||
|
|
||||||
|
##### Utilisation |
||||||
|
|
||||||
|
Si l'`{username}` est `kigiri` : |
||||||
|
|
||||||
|
```console |
||||||
|
user@host:~/piscine$ ./hello.sh |
||||||
|
Hello kigiri! |
||||||
|
user@host:~/piscine$ |
||||||
|
``` |
||||||
|
|
||||||
|
#### 3- go-say-hello |
||||||
|
|
||||||
|
Après que `hello.sh` s'éxécute proprement, il doit être uploadé dans le répository avec les commandes ci-dessous : |
||||||
|
|
||||||
|
1. `git add hello.sh` |
||||||
|
2. `git commit -m "My very first commit"` |
||||||
|
3. `git push origin master` |
||||||
|
|
||||||
|
Une fois ces étapes appliquées, le fichier peut maintenant être soumis pour correction sur la platforme en cliquant le bouton `submit`. |
||||||
|
|
||||||
|
Cette action fera passer les tests sur le fichier rendu `hello.sh`. |
Loading…
Reference in new issue