Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[2] allow custom tmux args, fix #79 #125

Merged
merged 6 commits into from
Aug 16, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix deprecated
Signed-off-by: blob42 <contact@blob42.xyz>
  • Loading branch information
blob42 committed Jun 15, 2024
commit 73e72786155a30673f0d82c1d7b188ace8826706
5 changes: 2 additions & 3 deletions config.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ package main

import (
"fmt"
"io/ioutil"
"os"
"os/exec"
"path"
Expand Down Expand Up @@ -65,7 +64,7 @@ func EditConfig(path string) error {
}

func GetConfig(path string, settings map[string]string) (*Config, error) {
f, err := ioutil.ReadFile(path)
f, err := os.ReadFile(path)
if err != nil {
return nil, err
}
Expand Down Expand Up @@ -110,7 +109,7 @@ func ParseConfig(data string, settings map[string]string) (Config, error) {

func ListConfigs(dir string) ([]string, error) {
var result []string
files, err := ioutil.ReadDir(dir)
files, err := os.ReadDir(dir)

if err != nil {
return result, err
Expand Down