Releases: SwayKh/linksym
Releases · SwayKh/linksym
v0.1.0
Changelog
- 510be52 (Fix): Add command special case of "Not needing the move step" no longer requires user to add a Trailing slash to indicate if source is a directory or file
- 91ecf36 Add .gitignore
- af1631f Add .go.releaser.yaml file to fine tune the releases for goreleaser github action
- 13f234e Add Colored logs with fatih/color package. Update all Log() and VerboseLog() calls to use INFO,WARNING,ERROR,SUCCESS codes to signifiy Logging colors
- 9232f57 Add Comments explaining things in Remove Function, And replace some code with filePathInfo helper function
- 426d5e2 Add ConfigName global variable and switch to using filepath.Join to create file paths. And Run setup directory function on startup
- 575bdf7 Add Error checking if more than expected arguments are provided with each subcommand
- 9cfdc83 Add Print statements to provide some output to console about what's happening under the hood. And update error messages.
- 0faf25f Add a Add record function to update records of symlinks to yaml file, Update .gitignore
- 3956d44 Add a RemoveRecord function for the Remove subcommand
- cb20197 Add a Unlink Function, to move the file to original source path, and Delete the symlinks
- cc3bac1 Add a way to reverse link a file, For file to exist at destination, but not on source.
- 3a5b75a Add ability to symlink given path to current directory. Add usage message, and flags
- 29be115 Add better formatting for message outputs, Update README, Change Log Color for Updating Record message
- 99e6c6b Add linux package binaries to goreleaser.yaml to generate .deb and .rpm packages
- a47f073 Add the default GoReleaser.yml github action file to creates releases
- f11f264 All Add subcommand cases are working now, Fix the HasSuffix function check, and update references
- 8c89c93 Change AliasConfig and ExpandConfig functions to methods and update references
- dae2601 Change Logs to be printed in Bold. and update remove command help message
- 14f5cfb Clean up main.go and move all the logic to cmd/linksym.go and have every function return the error to main
- 5d544bf Complete the Add subcommand functionality. Add Errors to be returned to each subcommands, that can be handled in main()
- 75a5e55 Create A AppendToDestinationPath function to reduce repeatative code
- 427a6bd Create AppConfig global variable. Update LoadConfig function to load configuration into global variable
- f63bdc8 Create LICENSE
- e4258d9 Create MoveAndLink function and Update errors for Linking logic and MoveFile function
- a3dae68 Create Update subcommand. Updates the Init Directory and the Records names of config with new destination paths from unaliased Init_directory
- 9eed560 Create a "source" subcommand flag, This commands will be used to link all records from the config file
- d4f5f6f Create a -u, --update flags for Init command to call the UpdateInitDirectory function, which updates init_directory to current directory
- 2059edf Create a Basic test structure, checking to see, how symlinks are created, getting user,config directory and ENV variables
- 9eddb7d Create a Config package, that handles initialising a basic empty config, loading the config for use in other pacakge.
- 9ec432d Create a Record subcommand which skips the Linking step of Add subcommand and just adds the record to .linksym.yaml
- 6099e83 Create a Restore command, that creates symlink for one or more specified targets. Compared to creating all symlinks with source command
- 4780bbe Create a helper function to get AbsPaths and other file info in one function call. Reduces the amount of boilerplate code
- 26bbd82 Create a logger package, to move the Verbose output logic to one place, All println statements are replaced with Log() and VerboseLog() calls
- 50370de Create a working Source Subcommand.
- 30bad6f Create aliasPath and expandPath function to store records with alias like ~ and $InitWorkdingDir. And expand paths to use internally
- 13a41f2 Create some temporary source Code for the Add Command to handle all cases for 2 args provided.
- 015809b Create subcommands and flags package, Add flags for help, and Add subcommand for Add, Remove and Init
- ea3ed37 Create utils.go that contains functions for checking and updating form of data, Update CurrentWorkingDirectory variable to InitDirectory
- 6e0ace4 Create working logic for the Remove Subcommand
- 1a8a0ed Decouple Setting Home Directory variable from SetupDirectories function
- 830707f Fix Argument logic for subcommands and WriteConfig function call. Providing configuration variable from LoadConfig()
- 1f5d2a5 Fix Init Subcommand issue of loading config, Now handle the Init case separately before calling LoadConfig
- 9bf1cbc Fix Linking issue where if a directory already exist, the Add or Source command wouldn't overide it when creating the links back
- 6390db2 Fix Remove subcommand throwing index out of range errors, Change iteration method, and update RemoveRecord function
- 015cfa1 Fix a nil pointer deference error in filePathInfo() function, where if a file didn't exist, the IsDir check would cause an err
- 9abc52d Fix broken init command with -u, --update flag
- f4f4fb8 Fix error for CheckFile function calls where isDir is checked before checking if file exists
- 5b925bf Fix issue of config file overriding previous paths with absolute path on linking.
- 23a282d Fix issue with adding directory with Add subcommand. Move the Deleting files logic to separate function to be called at multiple places
- 991e68b Fix the checkFile function returning an error when the file doesn't exist. Update the Add command check logic
- 5dadeb4 Fix the issue of linksym.yaml not being return, was caused by early returns from all subcommand, now handled by returning errors
- 6eabb34 Handle all cases for the Add Subcommand paths, Still need to be debugged and tested
- 7d8029a Initial commit
- 0dee310 Main.go updated for Add and Source subcommands
- cdee95e Make all Link functions methods on a LinkPaths struct. which allows passing homeDir and initDir to link package.
- 83712fc Make the Configpath vairable global. Create a CheckFile fucntion to checks if files exists, and return data for it
- 7585de3 Messed up the Special case code, Don't need the revesed paths for the Link Function
- 11f0592 Move AliasConfig() call out WriteConfig method. To allow Remove subcommand to save config after each record iternation.
- d82880f Move AliasPath and ExpandPath functions to file.go, and Update GetFileInfo() return signature
- 0d5e075 Move Directories setup functions to config.go, and remove utils.go
- 75ca344 Move GetFileInfo function from cmd/helpers.go to utils package
- ae19454 Move InitialiseConfig function to io.go. Remove testing fmt.Println calls and remove os.Exit call from Help function
- 263536c Move Initialising config logic to init.go
- 6c2f4cc Move Symlinking logic to linker package. Add getting working directory logic to separate function
- a51cad7 Move everything to packages again. Make every command into methods of an Application struct. And Call functions with fields of struct
- 132aa90 Move everything to the main package. Global variables are in main.go. split utils.go File function to file.go
- 3fc5aa8 Move flags logic to a flags package, help avoid import cycles
- 60e230e Move main.go to cmd/ directory
- 75cac91 Move main.go to top level directory for now
- 40965c5 Move some variables to a global package. Move AliasPath, ExpandPath, InitialiseHomePath, and SetupDirectory function to utils package
- 65f2ec1 Move the Linking Log message to all Link()/Unlink() calls. Probably bad, but allow for printing Aliased ...