Giter Club home page Giter Club logo

gotask's Introduction

Metrics

gotask's People

Contributors

owenthereal avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

gotask's Issues

Many external dependencies

I think that gotask is getting very heavy with so many external dependencies.

Please, keep it light because I find a penalty performance at running a command from gotask vs "go test".

Example sayhello_task.go does not compile ? go 1.5.1 regression ?

I copied the sayhello_task.go from this page [1]

OSX 10.10,
go installed using brew

here is the result

$ cat sayhello_task.go 
package main

import (
    "github.com/jingweno/gotask/tasking"
    "os/user"
    "time"
)

// NAME
//    say-hello - Say hello to current user
//
// DESCRIPTION
//    Print out hello to current user
//
// OPTIONS
//    --verbose, -v
//        run in verbose mode
func TaskSayHello(t *tasking.T) {
    user, _ := user.Current()
    if t.Flags.Bool("v") || t.Flags.Bool("verbose") {
        t.Logf("Hello %s, the time now is %s\n", user.Name, time.Now())
    } else {
        t.Logf("Hello %s\n", user.Name)
    }
}
pc-etienne:PhotoProcessor ec$ gotask say-hello
can't load package: /private/var/folders/c7/97_ghhl11x7fwsq2nc5908v8000lj8/T/go-task386440535/main.go:8:3: import "." is a program, not an importable package
/private/var/folders/c7/97_ghhl11x7fwsq2nc5908v8000lj8/T/go-task386440535/main.go:8:3: import "." is a program, not an importable package
2015/09/23 23:38:30 exit status 1
c-etienne:PhotoProcessor ec$ go version
go version go1.5.1 darwin/amd64
pc-etienne:PhotoProcessor ec$ 

[1] http://owenou.com/2013/11/27/writing-build-tasks-in-go-with-gotask.html

Can't run tasks

Hello,
when I attempt to run example from readme file I received following messages:

./bin/gotask say-hello
can't load package: import cycle not allowed
package .
imports .
import cycle not allowed
package .
imports .

I'm using GO version 1.4

Fill gotask description for compiled tasks

Running gotask -c and execute the binary, for example for the examples tasks:

NAME:
   examples - A new cli application

USAGE:
   examples [global options] command [command options] [arguments...]

VERSION:
   0.0.0

COMMANDS:
   gh-user      Get URL for a given GitHub user login
   say-hello    Say hello to current user
   help, h      Shows a list of commands or help for one command

GLOBAL OPTIONS:
   --version    print the version
   --help, -h   show help

The description is not filled.

More information in T

It would be nice to encapsulate more information in tasking.T struct such as:

  • task name
  • task description
  • ...

Name of task binaries

"gotask -c" compiles to 'package_name.task' but it would be better if were used the file name since that you could have several task files in the same directory.

e.g. for a file name 'testdata_task.go', the task binary would be 'testdata.task'

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.