diff --git a/bonus/doc/about.html b/bonus/doc/about.html new file mode 100644 index 0000000..75f9052 --- /dev/null +++ b/bonus/doc/about.html @@ -0,0 +1,90 @@ + + + + + + 42SH + + + +
+
+

About us

+
+
+ +
+
+
+

Florian:
Quote management, Environement management

+

Cecile:
Scripting, Globbings, Echo built in

+

Julien:
Multiple pipe management, Job control

+

Florent:
Parsing, Simple execution, Alias, History, Line edition, Local variable

+
+
+
+
+
+
+
+
Support the team!
+

Check out our GitHub and report any bug!

+ GitHub +
+
+ + + + + \ No newline at end of file diff --git a/bonus/doc/documentation.html b/bonus/doc/documentation.html new file mode 100644 index 0000000..2453aae --- /dev/null +++ b/bonus/doc/documentation.html @@ -0,0 +1,65 @@ + + + + + + 42SH + + + +
+
+

Documentation



+

Install

+

Go to the download page and click on download. You can either download the full source code or just the binary.

+

Make sure to have the ncurses library on your computer.



+

After install

+

Once you've downloaded the project use make to comile the source code.

+

Once the compilation is done or if you've downloaded the binary instead of the full source code, use sudo mv ./42sh /bin/42sh to move it to the bin.

+

To execute the shell : 42sh



+

Alias

+

To add an alias to the shell use the command alias this command takes two parameters, the first one being the original command and the second one being the new command.

+

For exemple remplacing ll by ls -l you would use : alias ll ls -l

+

Then use the command ll and it will execute the linked alias.

+

Then use the command to display all the alias is alias



+

History

+

To look at the history use the command history

+

If you want to use an old command us !-x x being the number of the command you want to use

+

When you want to use the last command, you'd use : !-1

+
+
+
+
+
Support the team!
+

Check out our GitHub and report any bug!

+ GitHub +
+
+
+ + + + + \ No newline at end of file diff --git a/bonus/doc/home.html b/bonus/doc/home.html new file mode 100644 index 0000000..f4e8056 --- /dev/null +++ b/bonus/doc/home.html @@ -0,0 +1,53 @@ + + + + + + 42SH + + + +
+
+

42SH

+
+

The 42sh is an Epitect project.

+

The purpose of this project was to re-create the tcsh.

+

Compsed of team of 4 students.

+
+
+
+
+
+
Support the team!
+

Check out our GitHub and report any bug!

+ GitHub +
+
+ + + + + \ No newline at end of file diff --git a/bonus/doc/main.go b/bonus/doc/main.go new file mode 100644 index 0000000..11dddd0 --- /dev/null +++ b/bonus/doc/main.go @@ -0,0 +1,44 @@ +package main + +import ( + "html/template" + "log" + "net/http" +) + +var tmpl = template.Must(template.ParseGlob("./*.html")) + +func home(w http.ResponseWriter, r *http.Request) { + + tmpl.ExecuteTemplate(w, "home.html", nil) +} + +func documentation(w http.ResponseWriter, r *http.Request) { + + tmpl.ExecuteTemplate(w, "documentation.html", nil) +} + +func download(w http.ResponseWriter, r *http.Request) { + + log.Println("Download [42sh].") + http.Redirect(w, r, "/", http.StatusSeeOther) +} + +func about(w http.ResponseWriter, r *http.Request) { + + tmpl.ExecuteTemplate(w, "about.html", nil) +} + +func main() { + + log.SetFlags(log.LstdFlags) + + http.HandleFunc("/", home) + http.HandleFunc("/download", download) + http.HandleFunc("/documentation", documentation) + http.HandleFunc("/about", about) + + http.Handle("/static/", http.StripPrefix("/static/", http.FileServer(http.Dir("static")))) + + http.ListenAndServe(":8080", nil) +} diff --git a/bonus/doc/static/cecile.jpg b/bonus/doc/static/cecile.jpg new file mode 100644 index 0000000..0bce31c Binary files /dev/null and b/bonus/doc/static/cecile.jpg differ diff --git a/bonus/doc/static/florent.jpg b/bonus/doc/static/florent.jpg new file mode 100644 index 0000000..cdb17c9 Binary files /dev/null and b/bonus/doc/static/florent.jpg differ diff --git a/bonus/doc/static/florian.jpg b/bonus/doc/static/florian.jpg new file mode 100644 index 0000000..cc1abcc Binary files /dev/null and b/bonus/doc/static/florian.jpg differ diff --git a/bonus/doc/static/julien.jpg b/bonus/doc/static/julien.jpg new file mode 100644 index 0000000..e2606c8 Binary files /dev/null and b/bonus/doc/static/julien.jpg differ diff --git a/bonus/documentation/index.html b/bonus/documentation/index.html deleted file mode 100644 index abc30ff..0000000 --- a/bonus/documentation/index.html +++ /dev/null @@ -1,62 +0,0 @@ - - - - - - - - 42SH - - -
-
-
-
-

42sh

-
Description
-

The 42sh is a tcsh like shell, most of the tcsh's functionalities are present.

-
Usage
-

$> make

-

$> sudo mv mysh /bin

-

$> mysh

-
Builtins
-

There are five builtins :

-
    -
  • cd
  • -
  • env
  • -
  • setenv
  • -
  • unsetenv
  • -
  • exit
  • -
-

They all have their own man.

-
History
-

To access the history use the command "hst".

-

The "hst" takes one parameter, it defines which command you want to execute.

-

"$> hst 1" will execute the last command in the history.

-
-

-
-
-
Download
- - -
-
-

- - - - -