Giter Site home page Giter Site logo

repo-automation's Introduction

Repository Automation

This repository contains a python script, that speeds up the process of setting up projects.

Running the script will initialize a local repository, add an empty README.md and push it to Github.

Install

git clone https://github.com/lepasq/repo-automation.git

Setup

In order to get the program running, a few variables need to be changed.

alt Screenshot

Inside main.py, user_token, user_name and code_editor have to be adjusted.

alt Screenshot

Next, you need to install the required python packages.

pip3 install -r requirements.txt

If your version 3.X of Python is linked to python instead of python3, you should run

pip install -r requirements.txt

and replace the first line of create.py with

#!/usr/bin/env python

If you are running windows, you need to replace echo inside create.py (l. 34) with ECHO.

Add Command to Windows

In order to use the program inside your command prompt, the folder containing the repository has to be added to the environment variables.

In order to open the environment variables, type env in the windows search bar and hit enter Click on "Environment Variables".

Edit the user variable "Path" (or create a new user variable with the variable name Path, it if it doesn't exist yet). Enter the location of the directory containing this repository in the variable name.

Your window should now look like this:

alt Screenshot

In order to execute the command, you need to type

create name

where name is the desired name of the repository that shall be created.

If you want the command to be called differently, you should change the name of create.bat.

Add Command to Linux

You should keep the python file create in your scripts folder (~/.local/bin/) and rename the file to whatever the command should be called.

Finally, you need to add Execution Permissions to your file:

chmod +x create

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.