Skip to content

Ncodi.Cli cannot find a file #57

Description

@LyesSaadi

Well, I'm on an issue reporting craze, it seems :P !

So, as per your request in #54, I tried Ncodi.Cli to compile a file (in #55 I used nc.sh), and it is unable to find a file whatever is the length I go on to precise it:

❯ ./src/Ncodi.Cli/bin/Debug/netcoreapp3.1/Ncodi.Cli run test.nc 
Error: file 'test.nc' not found here

Ncodi on  master [?] 
❯ ./src/Ncodi.Cli/bin/Debug/netcoreapp3.1/Ncodi.Cli run
The path field is required.
Specify --help for a list of available options and commands.

Ncodi on  master [?] 
❯ ls
addpath.cmd  ascii-logo.txt  icon-05.png  LICENSE  nc.cmd  nc.sh  README.md  samples  src  test.nc

Ncodi on  master [?] 
❯ mv test.nc ./src/Ncodi.Cli/bin/Debug/netcoreapp3.1/

Ncodi on  master 
❯ ./src/Ncodi.Cli/bin/Debug/netcoreapp3.1/Ncodi.Cli run test.nc
Error: file 'test.nc' not found here

Ncodi on  master 
❯ ./src/Ncodi.Cli/bin/Debug/netcoreapp3.1/Ncodi.Cli

 __    __                            __  __ 
|  \  |  \      By Aziz Amari       |  \|  \
| $$\ | $$  _______   ______    ____| $$ \$$
| $$$\| $$ /       \ /      \  /      $$|  \
| $$$$\ $$|  $$$$$$$|  $$$$$$\|  $$$$$$$| $$
| $$\$$ $$| $$      | $$  | $$| $$  | $$| $$
| $$ \$$$$| $$_____ | $$__/ $$| $$__| $$| $$
| $$  \$$$ \$$     \ \$$    $$ \$$    $$| $$
 \$$   \$$  \$$$$$$$  \$$$$$$   \$$$$$$$ \$$ 
            

Command line interface to run ncodi files

Usage: ncodi [command] [options]

Options:
  -?|-h|--help  Show help information.

Commands:
  run           
  shell         

Run 'ncodi [command] -?|-h|--help' for more information about a command.


Ncodi on  master 
❯ ./src/Ncodi.Cli/bin/Debug/netcoreapp3.1/Ncodi.Cli run /var/home/lyes/.opt/Ncodi/src/Ncodi.Cli/bin/Debug/netcoreapp3.1/test.nc
Error: file '/var/home/lyes/.opt/Ncodi/src/Ncodi.Cli/bin/Debug/netcoreapp3.1/test.nc' not found here

Ncodi on  master 
❯ cat /var/home/lyes/.opt/Ncodi/src/Ncodi.Cli/bin/Debug/netcoreapp3.1/test.nc
ekteb("Hello, World!")

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions