Coder Social home page Coder Social logo

Clone someone's AC codes about cf-tool HOT 5 CLOSED

xalanq avatar xalanq commented on June 2, 2024
Clone someone's AC codes

from cf-tool.

Comments (5)

xalanq avatar xalanq commented on June 2, 2024 3

I partially agree with you. But we should remember not only commands but also the parameters of commands. Both of them should be simpler.

cf pull --user=xalanq --since=01/01/1970

cf clone xalanq

I think the latter is simpler.

On the other hand, I think pulling all codes from Codeforces is not a high frequency requirement. If someone want to do that, just see the usage.

from cf-tool.

xalanq avatar xalanq commented on June 2, 2024 1

By default, if you just use cf pull, it will not pull all your codes (It will detect the parameters from the path). So if the tool use cf pull to clone all codes, it has to add a new parameter or something else. So I decide to add new command clone just like git clone :). What do you think?

from cf-tool.

GaurangTandon avatar GaurangTandon commented on June 2, 2024

Why not just add a new argument to cf pull, like cf pull user=xalanq ...? By default, let user be the currently logged in user. Thoughts?

from cf-tool.

infalmo avatar infalmo commented on June 2, 2024

You could make cf pull in such a way that if no parameter is provided, pull all submissions of a user. Also, @GaurangTandon s idea could be implemented.

from cf-tool.

GaurangTandon avatar GaurangTandon commented on June 2, 2024

I am seeing two things here:

  1. cloning another user's codes (you said "But it cannot clone other's codes")
  2. cloning all codes written by a user (you said "By default, if you just use cf pull, it will not pull all your codes")

For each of these we could add two new parameters to cf pull:

  1. user=<username> - user whose codes you want to pull
  2. since=<date> - specify date starting from which you want to pull all the codes

Specifying since=01/01/1970 would let user, for example, pull all their codes.

I am a bit hesitant about cf clone because it will complicate things for the end user (another command to remember). Whereas in most cases user can ignore the user and since parameters and cf pull will do what they want to (pull codes related to a particular problem).

But these are just suggestions, I am happy to discuss further :)

from cf-tool.

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.