![]() ![]() In the spirit of the software craftsmanship movement, I suggest that you build and maintain similar dotfiles for your infrastructure. By all means, take a look and copy anything you might find useful, but this repo is designed and intended for me and me alone. The important thing is that these are MY dotfiles automating MY toolchain based on MY opinions. Some of you might consider this a bit of a contradiction, and that's fine! You can also potentially discover tools you can used to improve your own toolchain.įor example, looking at my dotfiles, you can see I'm a pragmatic polyglot software craftsman with a UNIX mentality and an affinity for Microsoft tools. You can tell a lot about a developer by looking at their dotfiles. Different fighting styles suit different lightsabers just as different toolchains suit different development styles.ĭotfiles are an automation tool used by software craftsman to achieve stabile and repeatable builds of their custom toolchains across one or more machines. Just as Jedi quest across the galaxy, get Khyber crystals and other components, and assemble their weapon, developers experiment with shells, compilers, debuggers, etc., develop opinions, and assemble a custom toolchain. Text = string.sub(text, string.A developer's toolchain is like a lightsaber. Local newline = string.match(text, "^\n") Text = string.sub(text, string.len(whitespace) 1) Local whitespace = string.match(text, "^ ") Get the amount of whitespace (spaces) are at the current position in the text If the next line the cursor will be on is less than the height of the terminal It creates a new line (moves the cursor to the next line, and scrolls the terminal) Get the terminal size and the cursor position You can read more about opening/closing files here. Then, you exit the application and try and delete the dotfiles folder - but you can't because the help file is in read-only mode because you haven't closed the mainFile variable (which was the help file in the dotfiles folder). You probably can't delete the dotfiles folder because you were testing the feature where if you input no arguments, it opens the help file in the dotfiles folder. Once you've finished editing it, make sure you call mainFile.close(). After looking at your code, I noticed that you haven't closed the mainFile variable. Look through your code and make sure that you close any files that you open. Ģ) The access denied error when deleting the dotfiles folder is usually because a file in it has been opened in read-only mode (the "r" mode in fs/io.open), and has not been closed - leaving it to be only readable. fixed in 1.1ġ) Here is a simple function you can use to download something from Pastebin without having to use pastebin get. There is currently nothing I can do about it and sometimes it WILL remove the folder. ![]() Sometimes, when trying to remove the main folder ('dotfiles') you will get an 'access denied' error (at least, from my experiences).The installer currently uses n('pastebin get.The indentation in both the installer and the main program is quite screwed up, thanks to Notepad I will probably fix this if anyone wants me to.I already know how to fix this but I felt I should release the program anyway. When a line of text is wider than the screen width, it is not visible. ![]() Will be fixed in the next version - Will be fixed some day - No solution Version 1.1 ![]()
0 Comments
Leave a Reply. |