gos
- 13 Devlogs
- 18 Total hours
A better and faster way to structure your folder!
A better and faster way to structure your folder!
On the last devlog I had gos making .gos folder in the homedirectory of the user where it stores custom templates made by the user
I have added two new features:
gosaddgosgetgosadd]
We use the this command to add any folder as a template that we can later use with a different command
We have got a -a flag to add to folder. Although we wont be using this flags because I have got a way to make it easier and faster to type in the terminal and have given the solution in README.md in [After installation]
goget]
We use this command to fetch the copied folder from .gos/usr_Templates to the current directory we are on
“gosget” uses two flags:
– -p –> We use this to give in the new name of the template folder that will be saved in the current directory
– -e –> We use this to get the correct template that we have stored
Both -p and -e default values are an empty string so passing a value in necessary for it to work
I’ve made it so that when you run the newest version 0.9.1 which I havent released yet. It automatically creates a .gos folder in the user’s home directory and it’ll be the place where is store custom templates made by the user
I’ve to figure out how do we walk through the current directory and store in the usr_Templates and somehow copy paste it when the user requests that specific template
I still haven’t worked on the project properly due to my school. I currently have 9 hrs to figure out how we are going to move forward = )
I’ve read the reviews by you guys and have found out that:
Gos needs to have a way so that the user is able add their own templates
Few ppl also said that initializing a git repo when making a project will be very helpful
One review was about some bugs that he face in the tool I dont know what he had faced because the version that I had shipped was 0.6.5 and I’m currently working on 0.9.0. If anyone did face them too can you please tell me?
One guy asked me why did I name Gos as gos so for you:
The name Gos can be broken down like this : D
Gos
"Go" --> The language 'Golang'
"s" --> from 'Structure'
The first name that I had thought for was Gostruc. But it felt too big to type in the terminal when compared to mkdir and tree
tree like command in this project. Can you guys tell if I should do that ?– Bye
Typescript
Now all three languages have proper boiler plates for their different Project types In the latest version of Gos0.8.5
I’m thinking about gos should also initialize a Git repository when a user creates a project
I’m also thinking about adding JavaScript and C support to Gos
I wanna make adding new languages to the project a little easier if i don’t get too lazy to do that
I also wanna integrate default unix command like mkdir, tree to Gos. So that it feels more functional and less useless
– byee :)
Golang and Cpp
templates/ dirembed in GoNow there is a proper boilerplate for each project type in both the
languages now
I’ll be adding files to Typescript project strucutres next
To update gos: -
yay -S gos-binPackages to Clean Build select All by typing A###Other things
Lol, when i used embed now it decreased the binary size from 2.24 mb
to 1.09 mb
I’ve also added v0.6.5.md for the voters of Ship#1 although I have
asked a reviewer if I can scrap that Ship and just make a new ship from
the new versions of Gos. Les see what happens
–Bye
I have finnay got the CD workflow working with the help of some research the old google way but as it was taking too much time I again tried using claude and it helped me do the work very quick!
I also added a --list flag to see the project structure types for all the languages supported buy gofie.
One of the dumbest issues were that I was not updating .SRCINFO with the new PKGBUILD.
Got that running easily
And other issue also happened with the url of my project as I had changed the name from [Gostruc] to [Gos] before linking it here the remote was set to the old url till now which was causing some error 128 with github actions
Gos. Although I still get confused seeing the automation process becuase im not very well into it :Although Gos is available on the AUR(Arch User Repository) but I’ll never most likely recommend people using that way to install in on their systems cuz it will most of the times download the old version of gos ( Ofc it dosent happen all the time but ig there is a delay in my CD workflow)
I recommend using Go to download it (Atleast for now, i’m working for AUR :))
– byee
Finnaly!!
Fixed that annoying issue of projects with wrong types but still having standard strucutre
Nothing much
–byee :)
Ohh wait
I have been working on this project for 4 days today
But because this is a simple project I have not experienced much new things (I don’t have enough time to build large projects because of my school and exams; If I do I think I’m gonna burnout :))
I have added support for different languages (cpp, go, typescript)
Also, added project structure types in each language:
Go -> API, Web and Standard project types
TypeScript -> API, NextJS, Library and Standard project types
Cpp -> App/Game, Library and Standard project types
This project till now has helped me:
Learn how ‘go install’ works as I faced problems with how it’s cache works
Learn the use of tags in github
Signing out….
– lxsh-S
Mann I lovee building CLI’s!!
Maybe because i’m too lazy to go into web dev or smtg
Anyways, This is gos whose function is build a project structure with one command. Currently it only builds a proper folder structure for Go projects.
I’m looking forward to add other type too
There’s not much to say because it’s a simple and easy project but i’m building this because i’ll be using it too
Man..it’s getting harder for me to manage my 11th, gym and coding. Hope I don’t have another burnout