Code Monkey home page Code Monkey logo

Comments (8)

enryH avatar enryH commented on September 24, 2024 1

What e.g. git or conda have:

move --help # help move
move encode --help # move command with subcommand encode

from move.

simonrasmu avatar simonrasmu commented on September 24, 2024 1

I think using move-dl is fine, it is then also consistent with the pip package

from move.

enryH avatar enryH commented on September 24, 2024
[options.entry_points]
console_scripts =
    move-dl=move.__main__:main
    move-dl-encode-data=move.encode_data.__main__:main

if I name the target move I somehow get an error, I don't get: The system cannot find the file specified. (so if move=move.__main__:main it somehow has errors...)

from move.

enryH avatar enryH commented on September 24, 2024

I added the example on entrypoints: b9e7c2d

from move.

ri-heme avatar ri-heme commented on September 24, 2024

What do you mean by sub-commands here?

from move.

simonrasmu avatar simonrasmu commented on September 24, 2024

Alternatively, what about adding a keyword that specifies what to do?

move mode=encode
move mode=optimize_reconstruction
move mode=optimize_stability
move mode=analyze_latent
move mode=get_associations

from move.

ri-heme avatar ri-heme commented on September 24, 2024

@enryH:

if I name the target move I somehow get an error, I don't get: The system cannot find the file specified. (so if move=move.__main__:main it somehow has errors...)

It's a Windows-specific problem. The issue is that move is an internal Windows command (similar to mv in Unix), and setuptools cannot override it.

A different name has to be used then, so I will stick with move-dl for now.

from move.

enryH avatar enryH commented on September 24, 2024

🤯 nice that this is solved!

from move.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.