Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
28 commits
Select commit Hold shift + click to select a range
69e51c8
Initial forked commit
Jul 15, 2020
a66337a
Initial forked, things are ok
Jul 15, 2020
148b79a
Delete test
Jul 15, 2020
65ac3c9
deleted test and add updatelog.txt
Jul 15, 2020
98c1661
Merge branch 'winOS_gen' of https://github.com/Red-CS/ProjectInitiali…
Jul 15, 2020
a2d2c3c
Fixed issue in reading duplicate file 1/2
Jul 15, 2020
c093a38
Fixed issue in reading duplicate file
Jul 15, 2020
8a92f73
Merge branch 'winOS_gen' of https://github.com/Red-CS/ProjectInitiali…
Jul 15, 2020
0fcb014
Added params dict to make param testing easier
Jul 15, 2020
71567ec
Added logic for help parameter usage
Jul 15, 2020
5c39b6c
Added usage for other params and smart description sense
Jul 15, 2020
a189f37
Finished choose.py
Jul 15, 2020
8948c84
Finished choose.py and remote.py
Jul 15, 2020
9e4f7b9
Added readme, finished local and remote scripts
Jul 15, 2020
9ead7f1
Updated Readme and other things
Jul 16, 2020
7095628
Finished remove.py
Jul 16, 2020
4ea95e1
removed literal token from remove.py
Jul 16, 2020
c77e5fc
Fixed bat files, remove.py syntax, and Readme
Jul 16, 2020
a9c7ccf
Updated updatelog.txt
Jul 16, 2020
badecd7
Fixed critical bug in remote.py
Jul 17, 2020
2394d99
Fixed some bugs, more to go
Jul 17, 2020
952055f
Finished file removal and print process
Jul 17, 2020
11c025a
Added colour!
Jul 18, 2020
962878a
Final commit
Jul 18, 2020
e204021
Update README
Jul 18, 2020
596afa4
Update README.md
Jul 20, 2020
59a1a63
Fixed typos in readme files
Aug 6, 2020
177a720
Merge branch 'winOS_gen' of https://github.com/Red-CS/ProjectInitiali…
Aug 6, 2020
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
File renamed without changes.
21 changes: 21 additions & 0 deletions Mac-OS/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
### Install:
```bash
git clone "https://github.com/KalleHallden/ProjectInitializationAutomation.git"
cd ProjectInitializationAutomation
pip install -r requirements.txt
touch .env
Then open the .env file and store your username, password, and desired file destination. Use the provided format at the bottom of this README.
source ~/.my_commands.sh
```

### Usage:
```bash
To run the script type in 'create <name of your folder>'
```

### Env File Format:
```bash
USERNAME="Username123"
PASSWORD="Password123"
FILEPATH="/path/to/your/project/"
```
File renamed without changes.
File renamed without changes.
File renamed without changes.
29 changes: 8 additions & 21 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,21 +1,8 @@
### Install:
```bash
git clone "https://github.com/KalleHallden/ProjectInitializationAutomation.git"
cd ProjectInitializationAutomation
pip install -r requirements.txt
touch .env
Then open the .env file and store your username, password, and desired file destination. Use the provided format at the bottom of this README.
source ~/.my_commands.sh
```

### Usage:
```bash
To run the script type in 'create <name of your folder>'
```

### Env File Format:
```bash
USERNAME="Username123"
PASSWORD="Password123"
FILEPATH="/path/to/your/project/"
```
# Project Initialization Automation
See the respective folder for your operating system. Additional README files can be found there.
## Author
* **Kalle Hallden** - [KalleHallden](https://github.com/KalleHallden)
## Contributors:
* **Red Williams** - [Red-CS](https://github.com/Red-CS)
## Production
Kalle Hallden's Youtube video: [One Day Builds: Automating My Projects With Python](https://www.youtube.com/watch?v=7Y8Ppin12r4)
File renamed without changes.
159 changes: 159 additions & 0 deletions Windows/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,159 @@
# Pre-setup:

### Create user variables

#### Manually
```
Go to
> environment vairables
> Click "New" in User variables (the top one)
> Set name as "PWFA-Path"
> Set value as your workspace path (use double backslash (\\) as path separators)
> Get a token here: https://github.com/settings/tokens/new
> Must have repo, user, and delete_repo permissions
> Set "PWFA-Token" to the given token.
```
You can, of course, name these whatever you'd like. Just be sure to go through
remote.py, local.py, and remove.py and change that argument.
#### Through CMD
```
> setx [user variable name] "[user variable token]

For example:
> setx PWFA-Path "ThisIsMyTokenInQuotes"
```
Either way, you'll have to reset your pc before using them.
# Setup:
```
git clone "https://github.com/Red-CS/ProjectInitializationAutomation.git"
cd projectInitializerAutomation
pip install -r requirements.txt

If you are on Windows, which you probably are, be sure to add the "projectInitializerAutomation\windows_OS"
folder directory to path, instead you will use the files meant for Mac
```

# Usage:
## Create
#### General Use
Basically, the core of the command is this:
```
create <repository name> [options]
```
The repository name can now have spaces! Just be sure to put them in quotes:
```
create "Subscribe to Kalle Hallden"
```
#### Descriptions
Additonally, it's nice to give you're repository a description, yeah? You can type:
```
create "Subscribe to Kalle Hallden" -d "Remember to like and comment"
OR
create "Subscribe to Kalle Hallden" --description "Share with your friends!"
```
#### Private Repositories
Want to set your repo to private? Just add -p or --private
```
create "Subscribe to Kalle Hallden" -d "Like the video" -p.
> Initializes a Github repository set to private.
```
Don't include this tag for public repos, those are the default.
#### Local Repositories
Creating a local repository is as simple as typing:
```
create "My Local Repository" -l
OR
create "My Local Repository" --local
```
Note that it follows that strict syntax (create [repo name] -l/--local)
### Example
Say I wanted to build a remote repository named "Subscribe to Kalle Hallden" with a description of "Leave a like and comment!" We'll set as public, too. Just type:
```
create "Subscribe to Kalle Hallden" -d "Leave a like and comment!"
```
You'll see a message on Command prompt that looks like this:
```
The following arguments will be passed:
Name: Subscribe to Kalle Hallden
Description: Leave a like and comment!
Publicity: Public

Is this information correct (y/n)?
```
Simply type "y" or "Y" and your remote Repository will be instantiated.

If you want to skip that auto confirmation, just add one of the following to the end of the command:
```
-y --yes --auto-confirm
```
I recommend doing this for longer repository names and descriptions.

### Troubleshooting and Help
If you ever need more info on a tag, type either:
```
-h --help help()
```
after a tag. For example:
```
create -d -h
> Outputs description tag usage
```
Additionally, just typing
```
create
OR
create -h / --help / help()
```
will bring up general usage for all tags and commands.
## Remove
#### General Use
```
remove <repository name>
```
Yes, it's that simple. As of this version, you are can remove just the remote repository. Your passed repository name has to match GitHub's version of it. For example:

If you called
```
create "Subscribe To Kalle"
```
Github would read it as
```
Subscribe-To-Kalle
```

To remove this repostory, simply type:
```
remove Subscribe-To-Kalle
```
to see a warning and confirmation message to remove the repository remotely.
#### Other Parameters
Let's say you forget the name of the repository you're trying to delete. Typing:
```
remote -l
OR
remote --list
```
shows a numbered list of your repositories.
```
> remove --list

1. Like
2. Comment
3. Share
4. And-Subscribe

```
You can use this to delete repositories by position. For example, say you wanted to delete repository #4, "And-Subscribe". Enter:
```
> remove -4


Warning!
Executing this command would remove https://github.com/User/And-Subscribe


Are you sure you want to delete this repository (y/n)? y
Deleted repository https://github.com/User/And-Subscribe
```
# Authors
Windows files created by Red Williams (Red-CS)[https://github.com/Red-CS] and sharers of previously commited pull requests. See pull request history for more.
Loading