GithubHelp home page GithubHelp logo

parsadarbandsari / demix Goto Github PK

View Code? Open in Web Editor NEW
2.0 2.0 0.0 47 KB

This is the repository Demix, a simple and easy-learnable command prompt

License: GNU General Public License v3.0

Python 100.00%
python python3 python-3 demix first-release command-prompt

demix's Introduction

Demix

This is the repository Demix for, a simple and easy-learnable command prompt

demix's People

Contributors

parsadarbandsari avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

demix's Issues

Add comments and docsrtings to the code

Comments are important because they tell us what each part of the code does. As well as comments, we need to also come us with docstrings which they will live in the really beginning of a class or a function and in the command description in README.md (#15)

Add a usage prompt to all the commands

When typing a command that needs some extra input(e.g.goto), if they forget to include the info, then the prompt can print a usage text

This is how it will look:

John@COMPUTER-11AA11AA|C:\Users\john>goto
usage: goto [directory name]

NOTE: This was just an example

Awkward screen when listing empty directories

When the directory is empty, instead of two columns with nothing, we can tell the user that the directory in empty

eg:

John@COMPUTER-11AA11AA|C:\Users\john\EMPTY_DIR>list
Directory 'EMPTY_DIR' is empty

Here is an screenshot:
2019-12-21 (2)

Get commands' execution word using the class info

The old way(inefficient):

if command == EXECUTION_COMMAND: 
# Do the command

The new way(efficient):

if command == ExecutionCommand.cmd # cmd is a variable that has the exec word for each class
 # Do the command

NOTE: This was just an example and not the real code

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.