ucc icon indicating copy to clipboard operation
ucc copied to clipboard

Feature Request: Be able to run UCC from anywhere

Open Welding-Torch opened this issue 2 years ago • 3 comments

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.

Welding-Torch avatar Nov 08 '22 05:11 Welding-Torch

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

uditkarode avatar Dec 23 '22 13:12 uditkarode

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.

Welding-Torch avatar Dec 25 '22 05:12 Welding-Torch

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.

uditkarode avatar Mar 04 '23 16:03 uditkarode