krane / krane/cli

`krane login` errors when command runs for the first time

Open
#5 0 comments 0 reactions 0 assignees View on GitHub
good first issue
Dominant language
TypeScript
Stars
1
Forks
2
PR merge metrics
No merged PRs in 30d

Description

When running `krane login` for the first time the CLI will error out with the following error

```
Error: ENOENT: no such file or directory, open '~/.krane/krane.config'
Code: ENOENT
```

On subsequent requests this command should work as the missing directory would have been created.

### How to fix
1. Always check if `~/.krane/krane.config` exists, if it doesnt exists then create it.

Contributor guide

No contributing guide indexed for this repository

Research direction

Start at the `krane login` command entry point and trace how `~/.krane/krane.config` is opened during a first run. Reproduce the command with no existing `~/.krane` directory, then verify that the directory and config file are created and login succeeds.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.