Merge pull request 'docs: fix clan create command' (#439) from Mic92-main into main
This commit is contained in:
@@ -13,7 +13,7 @@ $ nix shell git+https://git.clan.lol/clan/clan-core
|
|||||||
```shellSession
|
```shellSession
|
||||||
$ mkdir ./my-flake
|
$ mkdir ./my-flake
|
||||||
$ cd ./my-flake
|
$ cd ./my-flake
|
||||||
$ clan create
|
$ clan flake create .
|
||||||
```
|
```
|
||||||
|
|
||||||
This action will generate two primary files: `flake.nix` and `.clan-flake`.
|
This action will generate two primary files: `flake.nix` and `.clan-flake`.
|
||||||
|
|||||||
@@ -68,10 +68,10 @@ class Command:
|
|||||||
try:
|
try:
|
||||||
for line in fd:
|
for line in fd:
|
||||||
if fd == self.p.stderr:
|
if fd == self.p.stderr:
|
||||||
print(f"[{cmd[0]}] stderr: {line}")
|
print(f"[{cmd[0]}] stderr: {line.rstrip()}")
|
||||||
self.stderr.append(line)
|
self.stderr.append(line)
|
||||||
else:
|
else:
|
||||||
print(f"[{cmd[0]}] stdout: {line}")
|
print(f"[{cmd[0]}] stdout: {line.rstrip()}")
|
||||||
self.stdout.append(line)
|
self.stdout.append(line)
|
||||||
self._output.put(line)
|
self._output.put(line)
|
||||||
except BlockingIOError:
|
except BlockingIOError:
|
||||||
|
|||||||
Reference in New Issue
Block a user