Skip to content

CapedDemon/CommandConsole

Repository files navigation

CodeFactor

bash

CommandConsole

Join our discord -

CommandConsole Server
As the name suggests this is a shell like software. Like a normal shell in linux or command prompt in windows, it also works like the same. It is made using C++ language and my motive of building this software is to refresh my C++ language skills and to make something which can take command and work.
..
Table of Contents
  1. FEATURES
  2. DOCUMENTATION
  3. GETTING STARTED
  4. HISTORY
  5. CONTRIBUTING
  6. SUPPORT
  7. LICENSE

FEATURES

  • Light Weight
  • Fast
  • Secure
  • Cross-Platform
  • User friendly

(back to top)

Documentation


The main program is written in the main.cpp file and the functions written there are in there individual files and I have made them header files and included them where it is necessary. All the code is written in C++ language. I have included CommandConsole.exe file of the main.c++ file. I have run it in my system and it worked fine doing all the things.

Commands:

  • Calculator: calc
  • Change Current Working Directory: ccwd
  • Clear the Screen: clr
  • Show the time: time
  • Make new directory: mkdr
  • Help(which show all the function to be run): help
  • List all the files and directories: list
  • Create new file: make
  • Print the current working directory: pcwd
  • Remove the file: remo
  • Remove the directory file: rmdr
  • Append something in a file: wrta
  • Write something in a file: wrte
  • Print the content of the file: read
  • Change the username and password: cnge
  • Copy the contents of one file to another file: cfile
  • Print the information of OS: sys
  • Print the thing you wanted: echo
  • Print username & password: root
  • Rename the file: rfile
  • Rename the folder: rdr
  • To confirm that a file or folder is present in a directory specified by you: getf
  • To get the number of line of a file in which a specified word is present: findf
  • To get the list of past commands: hist
  • To start a game: game. (A new cricket game is added to this application so that the users can enjoy while doing work. Check Others/cricket.hpp)

(back to top)

Internet

Now, in CommandConsole you can find things related to internet like ping to a website, getting the IPv4 address, etc The commands are :-

  • Print the IPv4 address: ipad

We have used the concept of Queue in the code using the stl library.

All the functions are written in MainCommands.hpp

(back to top)

Important:

  • Provide the correct command or else it will show "GIVE THE RIGHT COMMAND :}>".
  • Type quit to stop the shell.
  • When changing the directory provide the exact name of the directory.

(back to top)


GETTING STARTED

If you have docker installed then it is very good. The steps to execute the software using docker are as follows:-

  • type :-
docker run -it shreejan35/commandconsole:version (The latest version is available in the releases).

Try to use the laterst version which is bug free

  • It will pull the image from the docker hub.
  • When all the things are done it will start the program.
  • It will be like a normal shell. First of all type 'list' then check that all the files which are there in the github are shown there.
  • Don't do anything there or else the software will not work as that is the only working directory.
  • I have made another directory for you all, i.e, home. Go there by using 'ccwd' command.
  • Finally test all the commands.
  • Here is my docker repository link - https://hub.docker.com/repository/docker/shreejan35/commandconsole

You can clone my repository by executing this:-

git clone https://github.com/CapedDemon/CommandConsole.git

To run CommandConsole in linux/unix run:-

sudo apt-get install wine
wine CommandConsole.exe

You can also download the zip file, and then run the CommandConsole.exe file.

Prerequisite

  • Git need to be installed
  • The folder or directory in which you have kept the application need to have the name CommandConsole or else there can be some error.

Screenshot

(back to top)

HISTORY

Probably saying the Command Console is written in C which you can check in the previous versions/releases. But with modern days comes modern tech. which is needed. That's why it is implemented in c++.

(back to top)

CONTIBUTING

Contributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.

If you have a suggestion that would make this better, please fork the repo and create a pull request. You can also simply open an issue with the tag "enhancement". Don't forget to give the project a star! Thanks again!

  1. Fork the Project
  2. Create your Feature Branch (git checkout -b CommandConsole)
  3. Commit your Changes (git commit -m 'Add some advices')
  4. Push to the Branch (git push origin CommandConsole)
  5. Open a Pull Request

(back to top)

SUPPORT

Support me by giving a ✨ to this project

(back to top)

LICENSE

The license is GNU public license see more n LICENSE

(back to top)

This is all the things about my program. If you like it, then please share with others. This is a project which the begineers as well as intermediate programmers can build. Support me by following my github account. Thank you.