hoverinc / tableau-utilities

A module and CLI Utility for managing Tableau objects, locally, and in Tableau Online.
MIT License
4 stars 1 forks source link

CLI build config from local directory #18

Closed jaybythebay closed 1 year ago

jaybythebay commented 1 year ago

Be able to build a config from all the sources in a local directly.

jaybythebay commented 1 year ago
image

Justin's code:

if __name__ == '__main__':
    datasources_dir = args.datasources_dir
    if args.download_all:
        datasources_dir = download_all_datasources(creds)

    if datasources_dir:
        create_column_config_from_dir(datasources_dir)
    elif args.datasource_path:
        create_column_config_from_datasource(args.datasource_path)
    elif args.datasource_name:
        ts = TableauServer(**creds)
        ds = [d for d in ts.get_datasources() if d.name == args.datasource_name]
        if ds:
            path = ts.download_datasource(ds[0].id)
            create_column_config_from_datasource(path)
jaybythebay commented 1 year ago

Changes merged into 2.0 branch https://github.com/hoverinc/tableau-utilities/pull/9