koinos / koinos/koinos-cli

[BUG]: `~` Not Followed

Open
#105 1 comment 0 reactions 0 assignees View on GitHub
bug task
Dominant language
Go
Stars
7
Forks
6
PR merge metrics
No merged PRs in 30d

Description

### Is there an existing issue for this?

- [X] I have searched the existing issues

### Current behavior

When using `~` in a path, the CLI autocomplete works, but the path is not followed correctly when searching for the file.

![cli home](https://user-images.githubusercontent.com/15834128/158885788-b35e9d9a-1d66-4c6b-965f-1ff78cfdc812.png)

### Expected behavior

`~` should properly replace to `$HOME`.

### Steps to reproduce

1. Connect to an endpoint
2. Open a wallet
3. Upload a contract using a path prefixed by `~`

### Environment

```markdown
- OS: Mac OS
```

### Anything else?

_No response_

Contributor guide

Open the contributing guide

Research direction

Start with the CLI upload-contract flow described in the reproduction steps and reproduce the issue on Mac OS using a path prefixed with `~`. Trace how the path is handled during file search; done means `~` resolves to `$HOME` and the contract file is found correctly.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
cli
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.