Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature Request: Be able to run UCC from anywhere #10

Open
Welding-Torch opened this issue Nov 8, 2022 · 3 comments
Open

Feature Request: Be able to run UCC from anywhere #10

Welding-Torch opened this issue Nov 8, 2022 · 3 comments

Comments

@Welding-Torch
Copy link

Currently, the issue with UCC is that it requires your source .c files to be stored in the sources folder. My feature request is that it should be possible to run .c code from anywhere on the pc as keeping all of my code in one folder is inconvenient and results in the folder being un-navigable due to the large number of files.

@uditkarode
Copy link
Owner

You can already do this:

$ touch abc.cpp
$ # write the program
$ ucc -sr abc.cpp

As long as you have a workspace set somewhere, it should work

@Welding-Torch
Copy link
Author

Okay, that's great!
Could you please add that to the list of available commands in bash ucc -h ?
Currently bash ucc -h only shows:

Usage: ucc [option] [argument]

ucc -b/--build <filename>: builds <filename> from the sources folder.

ucc -r/--run <filename>: runs <filename> from the builds folder.

ucc -br/--build-run <filename>: builds and runs <filename> from sources folder.  

ucc -cb/--c-boilerplate <filename>: places <filename> in sources folder with C boilerplate.

ucc -cpb/--cpp-boilerplate <filename>: places <filename> in sources folder with CPP boilerplate.

@uditkarode
Copy link
Owner

uditkarode commented Mar 4, 2023

Sorry, completely forgot about this!

This flag is not available on Windows. The Windows implementation is very barebones.

I'd suggest using the script from master on WSL.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants