Skip to content

Commit

Permalink
[SYMLINK] TODOs
Browse files Browse the repository at this point in the history
  • Loading branch information
PeyTy committed Jun 21, 2024
1 parent d0a95d9 commit 62b8f0d
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions source/cli/symlink.hexa
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// The Hexa Compiler
// Copyright (C) 2021-2022 Oleh Petrenko
// Copyright (C) 2021-2024 Oleh Petrenko
// Copyright (C) 2020 Ethan (https://github.com/classerase)
//
// This program is free software: you can redistribute it and/or modify
Expand All @@ -19,8 +19,9 @@ fun symlink(): Void {
switch process.platform as! String {
case 'linux' | 'mac???TODO':
// TODO probably just copy or do actual symlinking?
// TODO edit `cd dir` line
// TODO requires `sudo` on arch\etc?
// TODO edit `cd dir` line or generate totally new bat file with path set
// ^ do not use `cd` just pass root as `@setenv HEXA_ROOT=... \n hexa cmds`
// TODO requires `sudo` on arch\etc? try catch on fail to recommend use sudo
Fs.renameSync('./hexa', '/usr/bin/hexa')
console.log("Symlinked successfully!")
case 'win32???TODO':
Expand Down

0 comments on commit 62b8f0d

Please sign in to comment.